Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Goofy
 
Posts: n/a
Default If than Else Trouble

I need help with a spreadsheet that is used to calculate a companies
forecast. How this works is during a month a spreadsheet calculates the
hours worked to get a financial forecast.We put on there planned weeks hours
and than fill in at the end of the week the actual hours.

This is a spreadsheet where you add the actual columns (these are the weeks
that have happened) that occurred with the forecasted columns. (These are
the columns that have not occurred.

(Example)
If the 1a is filled and is the only (a) column filled than you calculate the
1a+2+3+4 columns
If the 1a and the 2a is filled than you calculate the 1a+2a+3+4 columns
If the 1a and the 2a and the 3a is filled than you calculate the 1a+2a+3a+4
columns


Attempted with no success below. I tried to work backwards to see what week
we were in and than calculate accordingly.
----------------------------------------------------------------
Column 1, 1a, 2, 2a, 3, 3a, 4, 4a

If column 4a 0 than add column 4a+3a+2a+1a

else add column 1a+2a+3a+4





  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default If than Else Trouble

One way ..

A sample construct is available at:
http://www.savefile.com/files/1481398
Sum_AlternateCols_Goofy_wks.xls

Assuming the cols: 1, 1a, 2, 2a ... 4a are cols A to H
with data from row2 down

Put in say, the formula bar for I2:
=SUM(IF(--(MOD(COLUMN(A2:H2),2)=0),A2:H2))
+IF(ISNA(MATCH(1,--(A2:H2=""),0)),0,
SUM(OFFSET(H2,,,,MATCH(1,--(A2:H2=""),0)-10)))

Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
(instead of just pressing ENTER)
Copy I2 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Goofy" wrote in message
...
I need help with a spreadsheet that is used to calculate a companies
forecast. How this works is during a month a spreadsheet calculates the
hours worked to get a financial forecast.We put on there planned weeks

hours
and than fill in at the end of the week the actual hours.

This is a spreadsheet where you add the actual columns (these are the

weeks
that have happened) that occurred with the forecasted columns. (These are
the columns that have not occurred.

(Example)
If the 1a is filled and is the only (a) column filled than you calculate

the
1a+2+3+4 columns
If the 1a and the 2a is filled than you calculate the 1a+2a+3+4 columns
If the 1a and the 2a and the 3a is filled than you calculate the

1a+2a+3a+4
columns


Attempted with no success below. I tried to work backwards to see what

week
we were in and than calculate accordingly.
----------------------------------------------------------------
Column 1, 1a, 2, 2a, 3, 3a, 4, 4a

If column 4a 0 than add column 4a+3a+2a+1a

else add column 1a+2a+3a+4



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default If than Else Trouble

Hi

One way, though perhaps not the most elegant
=SUM(A2:H2)-SUM(A2*(B20),C2*(D20),E2*(F20),G2*(H20))

--
Regards

Roger Govier


"Goofy" wrote in message
...
I need help with a spreadsheet that is used to calculate a companies
forecast. How this works is during a month a spreadsheet calculates
the
hours worked to get a financial forecast.We put on there planned weeks
hours
and than fill in at the end of the week the actual hours.

This is a spreadsheet where you add the actual columns (these are the
weeks
that have happened) that occurred with the forecasted columns. (These
are
the columns that have not occurred.

(Example)
If the 1a is filled and is the only (a) column filled than you
calculate the
1a+2+3+4 columns
If the 1a and the 2a is filled than you calculate the 1a+2a+3+4
columns
If the 1a and the 2a and the 3a is filled than you calculate the
1a+2a+3a+4
columns


Attempted with no success below. I tried to work backwards to see what
week
we were in and than calculate accordingly.
----------------------------------------------------------------
Column 1, 1a, 2, 2a, 3, 3a, 4, 4a

If column 4a 0 than add column 4a+3a+2a+1a

else add column 1a+2a+3a+4







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
UGH! Trouble downloading, and opening anything cali Excel Discussion (Misc queries) 1 December 15th 05 06:36 AM
Having trouble totaling columns in excel 2003, always worked b4 rjmac Excel Worksheet Functions 1 June 24th 05 07:01 PM
trouble shooting section danielle Excel Discussion (Misc queries) 1 April 25th 05 10:11 PM
still having trouble with this.... nick Excel Worksheet Functions 4 March 13th 05 07:40 PM
Maps.........Having Trouble Loading things grasshopper Excel Worksheet Functions 1 November 3rd 04 03:29 PM


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

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"