ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SUM (TODAY thru EOM) (https://www.excelbanter.com/excel-discussion-misc-queries/184215-sum-today-thru-eom.html)

Ken

SUM (TODAY thru EOM)
 
Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha


Sandy Mann

SUM (TODAY thru EOM)
 
If that is how your data will always be laid out then try:

=SUM(INDEX(B2:B32,DAY(TODAY())):B32)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha





Mike H

SUM (TODAY thru EOM)
 
Ken,

I'm assuming you have dates in A1 - A32 so tru this

=SUM(IF(DAY(A2:A32)=DAY(TODAY()),B2:B32,0))
It's an array so commit with Ctrl+Shift+Enter.

Mike

"Ken" wrote:

Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha


Ken

SUM (TODAY thru EOM)
 
Sandy ... (Good morning)

Exactly as requested ... & I will be using ... but one more twist.

Should Col A Date not start with 1st of Month (1-31) & I need to INDEX Col A
into this equation with remaining requirements the same ... How do I do this?

ie:

Find TODAY in Col A ... SUM Col B Range from associated Value in Col B to EOM

Thanks ... Kha

"Sandy Mann" wrote:

If that is how your data will always be laid out then try:

=SUM(INDEX(B2:B32,DAY(TODAY())):B32)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha






Sandy Mann

SUM (TODAY thru EOM)
 
If by:

Should Col A Date not start with 1st of Month (1-31)


you mean that some of the cells in the start of the range A2:A32 are blank
then the formula given will still work because it is not actually using any
of the dates in Column A.

If you mean that the date in A2 may not be the 1st of the month then try:

=SUM(INDEX(B2:B32,MATCH((TODAY()),A2:A32)):B32)

This assumes that the cell from the end of your data to row 32 are empty, if
not, change the A32 & B32 to the ends of your data.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Sandy ... (Good morning)

Exactly as requested ... & I will be using ... but one more twist.

Should Col A Date not start with 1st of Month (1-31) & I need to INDEX Col
A
into this equation with remaining requirements the same ... How do I do
this?

ie:

Find TODAY in Col A ... SUM Col B Range from associated Value in Col B to
EOM

Thanks ... Kha

"Sandy Mann" wrote:

If that is how your data will always be laid out then try:

=SUM(INDEX(B2:B32,DAY(TODAY())):B32)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha










Ken

SUM (TODAY thru EOM)
 
Dead Nuts ... Perfect ... :)

=SUM(INDEX(B2:B32,MATCH((TODAY()),A2:A32)):B32)

I am always grateful for those who provide the many solutions on these boards.

Thank you ... Kha





"Sandy Mann" wrote:

If by:

Should Col A Date not start with 1st of Month (1-31)


you mean that some of the cells in the start of the range A2:A32 are blank
then the formula given will still work because it is not actually using any
of the dates in Column A.

If you mean that the date in A2 may not be the 1st of the month then try:

=SUM(INDEX(B2:B32,MATCH((TODAY()),A2:A32)):B32)

This assumes that the cell from the end of your data to row 32 are empty, if
not, change the A32 & B32 to the ends of your data.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Sandy ... (Good morning)

Exactly as requested ... & I will be using ... but one more twist.

Should Col A Date not start with 1st of Month (1-31) & I need to INDEX Col
A
into this equation with remaining requirements the same ... How do I do
this?

ie:

Find TODAY in Col A ... SUM Col B Range from associated Value in Col B to
EOM

Thanks ... Kha

"Sandy Mann" wrote:

If that is how your data will always be laid out then try:

=SUM(INDEX(B2:B32,DAY(TODAY())):B32)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha











Sandy Mann

SUM (TODAY thru EOM)
 
Glad that it worked for you. Thanks for the feedback.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Dead Nuts ... Perfect ... :)

=SUM(INDEX(B2:B32,MATCH((TODAY()),A2:A32)):B32)

I am always grateful for those who provide the many solutions on these
boards.

Thank you ... Kha





"Sandy Mann" wrote:

If by:

Should Col A Date not start with 1st of Month (1-31)


you mean that some of the cells in the start of the range A2:A32 are
blank
then the formula given will still work because it is not actually using
any
of the dates in Column A.

If you mean that the date in A2 may not be the 1st of the month then try:

=SUM(INDEX(B2:B32,MATCH((TODAY()),A2:A32)):B32)

This assumes that the cell from the end of your data to row 32 are empty,
if
not, change the A32 & B32 to the ends of your data.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Sandy ... (Good morning)

Exactly as requested ... & I will be using ... but one more twist.

Should Col A Date not start with 1st of Month (1-31) & I need to INDEX
Col
A
into this equation with remaining requirements the same ... How do I do
this?

ie:

Find TODAY in Col A ... SUM Col B Range from associated Value in Col B
to
EOM

Thanks ... Kha

"Sandy Mann" wrote:

If that is how your data will always be laid out then try:

=SUM(INDEX(B2:B32,DAY(TODAY())):B32)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Ken" wrote in message
...
Excel2003 ...

Range A2:A32 contains Days of Month (1-31)
Range B2:B32 contains Values

Cell B33 ... I wish to SUM Col B Values from TODAY thru End of
Month.

ie: If TODAY is 04/18 ... Sum B Values 04/18 thru EOM
ie: If TODAY is 04/19 ... Sum B Values 04/19 thru EOM

Thanks ... Kha















All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com