Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Year-to-date based on current month

Hey everyone,

I have an invoice schedule for the year. Each month I would like to
calculate the remaining unbilled amount for each client. My data is:
A B C D
1: Client January 1, 2008 February March....
2: ABC Co $30 $32 $25

So in January, the total amount unbilled for ABC Co is $57. In February, the
total amount unbilled for ABC Co is $25.

I've searched the forum, and the best answer came from Roger Govier in 2007
("YTD sum range"). Modifying his formula, I get:
=SUM(B2:INDEX(B2:M2,MATCH(Month(TODAY()), Month(B1:M2,0))))

The result is #Value with the Month function added, and #N/A without it.

Not sure what I'm doing wrong.

Thanks,

John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Year-to-date based on current month

You need to replace the text months with real dates, then you can just use a
custom format to
display it like you want, or use this

=SUM(B2:INDEX(B2:M2,MATCH(TEXT(TODAY(),"mmmm"),B1: M1,0)))


--


Regards,


Peo Sjoblom



"John in Toronto" wrote in message
...
Hey everyone,

I have an invoice schedule for the year. Each month I would like to
calculate the remaining unbilled amount for each client. My data is:
A B C D
1: Client January 1, 2008 February March....
2: ABC Co $30 $32 $25

So in January, the total amount unbilled for ABC Co is $57. In February,
the
total amount unbilled for ABC Co is $25.

I've searched the forum, and the best answer came from Roger Govier in
2007
("YTD sum range"). Modifying his formula, I get:
=SUM(B2:INDEX(B2:M2,MATCH(Month(TODAY()), Month(B1:M2,0))))

The result is #Value with the Month function added, and #N/A without it.

Not sure what I'm doing wrong.

Thanks,

John



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Year-to-date based on current month

Peo,

That almost solved it...I had to change the months from dates to text
("January", "February",...).

It works now.

Thank you very much.

John

"Peo Sjoblom" wrote:

You need to replace the text months with real dates, then you can just use a
custom format to
display it like you want, or use this

=SUM(B2:INDEX(B2:M2,MATCH(TEXT(TODAY(),"mmmm"),B1: M1,0)))


--


Regards,


Peo Sjoblom



"John in Toronto" wrote in message
...
Hey everyone,

I have an invoice schedule for the year. Each month I would like to
calculate the remaining unbilled amount for each client. My data is:
A B C D
1: Client January 1, 2008 February March....
2: ABC Co $30 $32 $25

So in January, the total amount unbilled for ABC Co is $57. In February,
the
total amount unbilled for ABC Co is $25.

I've searched the forum, and the best answer came from Roger Govier in
2007
("YTD sum range"). Modifying his formula, I get:
=SUM(B2:INDEX(B2:M2,MATCH(Month(TODAY()), Month(B1:M2,0))))

The result is #Value with the Month function added, and #N/A without it.

Not sure what I'm doing wrong.

Thanks,

John




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
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? misscrf Excel Discussion (Misc queries) 1 December 14th 07 02:59 PM
Finding values based on current month Paulc Excel Worksheet Functions 5 November 29th 06 12:19 PM
Sort month/date/year data using month and date only SMW820 Excel Discussion (Misc queries) 6 June 22nd 06 05:14 PM
Current date formula based on month Renz09 Excel Discussion (Misc queries) 2 May 5th 06 07:04 AM
HELP - need to returns the current number of past month this year and ... elz64 Excel Worksheet Functions 6 April 6th 05 01:37 PM


All times are GMT +1. The time now is 01:15 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"