Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default calculate year-to-date total

I hope I can explain this correctly.

I have a worksheet in which I am comparing totals between last fiscal year
and this fiscal year.

In cell A1 I have 'FY07'
In cell A2 I have 'FY08'
In cell A3 I have '7' (because January is the 7th month of our fiscal year).

In column B I have the list of our plants, 'Plant A', 'Plant B', etc

In column C I have totals for 'July FY07', in column D 'July FY08', column E
'August FY07', column F 'August FY08', etc. through column Z 'June FY08'.

In column AA I have the YTD total for FY07, column AB 'YTD FY08'.

I am ok with using the SUM feature to calculate YTD FY08 since months that
haven't come yet have a 0 as the total so SUM works perfectly.

My problem is with YTD FY07. Right now, the spreadsheet is using an IF
statement which works off of the month number in cell A3, for example:
IF(A$3=1,C1,IF(A$3=2,C1+E1, IF(A$3=3, C1+E1+G1, etc...)). This formula works
great until we get to January (month 7) since the IF statement only allows 6
IF's. I need to find a way to add the FY07 columns for YTD.

The person who made the original spreadsheet years ago is no longer here and
no one else seems to know why the sheet was set up this way. I've probably
been looking at this so much that I just can't see the forest for the trees
so I hope there is any easy fix out there, well, it doesn't necessarily have
to be easy it just has to work.

I hope I've been able to express this correctly and that it makes sense.
Any help would be greatly appreciated.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default calculate year-to-date total

Theres probably other solutions, but the way I deal with YTD type sums in my
databases is to create a running total below the data so create a new column
and start it off in column C FY07 July

And put = C2 (if this is where your first piece of data is)

Then in E write =C2+E2

Then in F write E2 + F2

And do this all the way across

Then you can use an offset statement that picks the YTD month based on the
value in A3

So for instance the current example you would have would look like this...

In column AA write

=Offset(B3,,A3*2-1)

This is assuming you put the YTD figures in B3

"Blessedx3" wrote:

I hope I can explain this correctly.

I have a worksheet in which I am comparing totals between last fiscal year
and this fiscal year.

In cell A1 I have 'FY07'
In cell A2 I have 'FY08'
In cell A3 I have '7' (because January is the 7th month of our fiscal year).

In column B I have the list of our plants, 'Plant A', 'Plant B', etc

In column C I have totals for 'July FY07', in column D 'July FY08', column E
'August FY07', column F 'August FY08', etc. through column Z 'June FY08'.

In column AA I have the YTD total for FY07, column AB 'YTD FY08'.

I am ok with using the SUM feature to calculate YTD FY08 since months that
haven't come yet have a 0 as the total so SUM works perfectly.

My problem is with YTD FY07. Right now, the spreadsheet is using an IF
statement which works off of the month number in cell A3, for example:
IF(A$3=1,C1,IF(A$3=2,C1+E1, IF(A$3=3, C1+E1+G1, etc...)). This formula works
great until we get to January (month 7) since the IF statement only allows 6
IF's. I need to find a way to add the FY07 columns for YTD.

The person who made the original spreadsheet years ago is no longer here and
no one else seems to know why the sheet was set up this way. I've probably
been looking at this so much that I just can't see the forest for the trees
so I hope there is any easy fix out there, well, it doesn't necessarily have
to be easy it just has to work.

I hope I've been able to express this correctly and that it makes sense.
Any help would be greatly appreciated.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 171
Default calculate year-to-date total

The IF statements don't need to be nested...
=IF(A3=1,C1,0)+IF(A3=2,E1,0)+IF(A3=3,G1,0)+...+ IF(A3=12,Y1,0)


"Blessedx3" wrote:

I hope I can explain this correctly.

I have a worksheet in which I am comparing totals between last fiscal year
and this fiscal year.

In cell A1 I have 'FY07'
In cell A2 I have 'FY08'
In cell A3 I have '7' (because January is the 7th month of our fiscal year).

In column B I have the list of our plants, 'Plant A', 'Plant B', etc

In column C I have totals for 'July FY07', in column D 'July FY08', column E
'August FY07', column F 'August FY08', etc. through column Z 'June FY08'.

In column AA I have the YTD total for FY07, column AB 'YTD FY08'.

I am ok with using the SUM feature to calculate YTD FY08 since months that
haven't come yet have a 0 as the total so SUM works perfectly.

My problem is with YTD FY07. Right now, the spreadsheet is using an IF
statement which works off of the month number in cell A3, for example:
IF(A$3=1,C1,IF(A$3=2,C1+E1, IF(A$3=3, C1+E1+G1, etc...)). This formula works
great until we get to January (month 7) since the IF statement only allows 6
IF's. I need to find a way to add the FY07 columns for YTD.

The person who made the original spreadsheet years ago is no longer here and
no one else seems to know why the sheet was set up this way. I've probably
been looking at this so much that I just can't see the forest for the trees
so I hope there is any easy fix out there, well, it doesn't necessarily have
to be easy it just has to work.

I hope I've been able to express this correctly and that it makes sense.
Any help would be greatly appreciated.

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
Creating a formula to show year to date total. bammiesandy Excel Discussion (Misc queries) 4 January 9th 07 09:17 PM
add a hire date to the end of year (12/31/05) and get Total years Sohoma Knome Excel Discussion (Misc queries) 2 December 28th 05 03:20 PM
HOW DO WE SET A FORMULA TO FIGURE A YEAR TO DATE TOTAL ?? RAY Excel Worksheet Functions 2 September 5th 05 01:56 PM
HOW DO WE SET A FORMULA TO FIGURE A YEAR TO DATE TOTAL ?? RAY Excel Worksheet Functions 1 September 4th 05 09:37 PM
how to calculate total months from month/year patti Excel Discussion (Misc queries) 1 December 8th 04 09:50 PM


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