PC Review


Reply
Thread Tools Rate Thread

Building a formula from another cell

 
 
zp18
Guest
Posts: n/a
 
      3rd Aug 2010
I have a long irregular list of cells that repeat every 6 lines.
Like this:

Title
blank line
1st shift sales
2nd shift sales
3rd shift sales
blank line

repeat

I can build up a formula like this:
=concatenate("=Sum(B",C14,":B",C15,")")
where C14="3" and C15="5" for a complete formula of =Sum(B3:B5) to
calculate the days sales
now,. how can I get it from a text form to an executable form?

(Incidentally, when I use the concatenate operation shown above, Excel
rips off the last closing parend for some reason.)

Thanks
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      3rd Aug 2010
Not sure how you would convert the text representation of a formula.
You can enter the following formula in C6 and fill down.
Assumes Title is in B1 will data repeating underneath it...

=IF(AND(LEN(B6)=0,ISNUMBER(OFFSET(B6,-1,0))),SUM(B3:B5),"")

--
Jim Cone
Portland, Oregon USA
Review of Special Sort add-in: http://www.contextures.com/excel-sort-addin.html

..
..
..

"zp18" <(E-Mail Removed)>
wrote in message
I have a long irregular list of cells that repeat every 6 lines.
Like this:

Title
blank line
1st shift sales
2nd shift sales
3rd shift sales
blank line

repeat

I can build up a formula like this:
=concatenate("=Sum(B",C14,":B",C15,")")
where C14="3" and C15="5" for a complete formula of =Sum(B3:B5) to
calculate the days sales
now,. how can I get it from a text form to an executable form?

(Incidentally, when I use the concatenate operation shown above, Excel
rips off the last closing parend for some reason.)

Thanks
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      3rd Aug 2010
Correction:
"Assumes Title is in B1 will data repeating underneath it..."

Should read...
"Assumes Title is in B1 with data repeating underneath it..."

 
Reply With Quote
 
AB
Guest
Posts: n/a
 
      3rd Aug 2010
Do you mean something like this:
=SUM(INDIRECT("B"&C14):INDIRECT("B"&C15))
?


On Aug 3, 4:53*am, zp18 <irvinep...@gmail.com> wrote:
> I have a long irregular list of cells that repeat every 6 lines.
> Like this:
>
> Title
> blank line
> 1st shift sales
> 2nd shift sales
> 3rd shift sales
> blank line
>
> repeat
>
> I can build up a formula like this:
> =concatenate("=Sum(B",C14,":B",C15,")")
> where C14="3" and C15="5" for a complete formula of =Sum(B3:B5) to
> calculate the days sales
> now,. how can I get it from a text form to an executable form?
>
> (Incidentally, when I use the concatenate operation shown above, Excel
> rips off the last closing parend for some reason.)
>
> Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building A Formula: Selecting Cell Address As Absolute? (PeteCresswell) Microsoft Excel Discussion 4 16th Oct 2010 03:16 PM
Help with building a formula based on cell values jfrick100@gmail.com Microsoft Excel Programming 3 28th Sep 2007 08:22 PM
building a formula =?Utf-8?B?TXVycmF5?= Microsoft Excel Programming 3 17th May 2007 02:18 AM
Building Excel Formula that Returns the Column of Last Cell with Data dcostantiello@gmail.com Microsoft Excel Programming 1 19th Jul 2006 10:36 PM
VBA formula building pm Microsoft Excel Programming 14 7th Mar 2006 03:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 AM.