if using OR for 12 cells calcualtion?

exceliz

Board Regular
Joined
Sep 26, 2007
Messages
154
Hi

wondering if this is posible.

I have 12 months of data in cells F7 H7 J7 etc every other cell to cell AB7 showing the Target
i also have 12 months of data in cells G7 I7 K7 etc showing the actual which at the end i have just summed up a cummulative total to the month i am reporting on.

but i want to sum the target up according to what month it is? if i do a sum it just sums up the years with no current month comparison available.

thanks Liz
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
How about this:
Excel Workbook
EFGHIJKLMNOPQRSTUVWXYZAAABAC
5TgtActTgtActTgtActTgtActTgtActTgtActTgtActTgtActTgtActTgtActTgtActTgtAct
6month112233445566778899101011111212
73432363238323632373244423936383741
8Act160
9Tgt181- only sums values that have a matching non-zero value
Sheet
 
Upvote 0
i get an N/A

but my actuals have 0 in not blanks?
they are linked to the data source which shows on a graph and is not plotted as 0's?

coudl this be why?

Thanks for your help
 
Upvote 0
I used range F7:AC7 which is actually one too big, and so tested AD7 when it's not needed. Does this work:

=SUMPRODUCT(--(MOD(COLUMN(F:AB),2)=0)*(F7:AB7)*--(G7:AC7>0))

?
 
Upvote 0
EXCELLENT

thanks v much. dont quite understand why the extra column made it fail but GREAT
Thanks

Liz x
 
Upvote 0
Another alternative I used Sheet10 to test , change the sheet reference as required.


Excel Workbook
FGHIJKLMNOPQRSTUVWXYZAAABAC
1JanJanFebFebMarMarAprAprMayMayJunJunJulJulAugAugSepSepOctOctNovNovDecDec
2TargetActualTargetActualTargetActualTargetActualTargetActualTargetActualTargetActualTargetActualTargetActualTargetActualTargetActualTargetActual
3100089020001000400056003000400040003500200020001500200010002000300020001500
4
5BegJan
6EndAug
7
8Total:From Jan toAug
9Target18500
10Actual18990
11
Sheet10
#VALUE!
</td></tr></table></td></tr></table>
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top