![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Rhos On Sea, Wales
Posts: 23
|
Each month I receive varying amounts of income. To predict the annual income I use the following formula (this row is for the first six months). Is there a shorter/easier way of doing this ?
=IF(G10>0,SUM(B10:G10),IF(F10>0,(SUM(B10:G10)/5)*6,IF(E10>0,(SUM(B10:E10)/4)*6,IF(D10>0,(SUM(B10:G10)/3)*6,IF(C10>0,((B10+C10)/2)*6,IF(B10>1,B10*6,0)))))) This formula is in H10, Jan income is entered in B10, Feb in C10 et seq. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
|
The Trend function may give you what you want - it takes know dates & corresponding values & then calculates the values for unknown dates.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Location: Rhos On Sea, Wales
Posts: 23
|
Trend is too advanced for me as I am unable to get it to return anything other than #VALUE!
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
|
A couple of things to check :
Have you got your known Dates & known Values exactly the same size ? The cells that contain the dates must be in a date format else XL can't calculate duration or each time period. |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
=(SUM(B10:G10)/COUNT(B10:G10))*6 if they have formulas or 0's use: =SUM(B10:G10)/COUNTIF(B10:G10,">"&0)*6
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: May 2002
Location: Rhos On Sea, Wales
Posts: 23
|
I do not have dates in the workbook, just values in those cells in row 10
|
|
|
|
|
|
#7 |
|
New Member
Join Date: May 2002
Location: Rhos On Sea, Wales
Posts: 23
|
Ah ! the simplicity of it all. Cells are empty and that works just fine. Thanks
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|