Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Karen D
 
Posts: n/a
Default pulling text into a sum formula

This is relating to my previous post. I have figured out how to return the
column letter of the column I want to SUM through in a separate cell (cell
L4). Now what I am trying to do is write a SUM formula that will sum M4 to
the column that is being returned in cell L4. The amount showing in L4 is
"t", which is correct. Now, is there a way to pull the "t" into a SUM
formula?

=SUM(m4:CELL("contents",L4)4) is what I've tried. Is this close?

What I am trying to do in this case is SUM M4 to T4, with T being a variable
that will change depending on what is returned in cell L4.

Thanks!

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

=sum(offset(M4,0,0,1,COUNTIF($m$2:$z$2,"<"&today() ))

if the dates are in row 2 as DATES, the COUNTIF() will figure out how many
columns to include. The SUM() and OFFSET() ought to deal with everything

"Karen D" wrote:

This is relating to my previous post. I have figured out how to return the
column letter of the column I want to SUM through in a separate cell (cell
L4). Now what I am trying to do is write a SUM formula that will sum M4 to
the column that is being returned in cell L4. The amount showing in L4 is
"t", which is correct. Now, is there a way to pull the "t" into a SUM
formula?

=SUM(m4:CELL("contents",L4)4) is what I've tried. Is this close?

What I am trying to do in this case is SUM M4 to T4, with T being a variable
that will change depending on what is returned in cell L4.

Thanks!

  #3   Report Post  
Karen D
 
Posts: n/a
Default

Thank you thank you!!! I've been at this all day! :)

"Duke Carey" wrote:

=sum(offset(M4,0,0,1,COUNTIF($m$2:$z$2,"<"&today() ))

if the dates are in row 2 as DATES, the COUNTIF() will figure out how many
columns to include. The SUM() and OFFSET() ought to deal with everything

"Karen D" wrote:

This is relating to my previous post. I have figured out how to return the
column letter of the column I want to SUM through in a separate cell (cell
L4). Now what I am trying to do is write a SUM formula that will sum M4 to
the column that is being returned in cell L4. The amount showing in L4 is
"t", which is correct. Now, is there a way to pull the "t" into a SUM
formula?

=SUM(m4:CELL("contents",L4)4) is what I've tried. Is this close?

What I am trying to do in this case is SUM M4 to T4, with T being a variable
that will change depending on what is returned in cell L4.

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coverting Formula to Text Catch 22 Excel Discussion (Misc queries) 3 April 1st 05 01:13 AM
Text in cell as Formula SU Excel Discussion (Misc queries) 4 March 9th 05 06:37 PM
merging text without using a formula April Excel Discussion (Misc queries) 4 February 16th 05 01:07 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Concatenation formula loses text wrap formatting DFM Excel Discussion (Misc queries) 5 December 27th 04 01:45 PM


All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"