![]() |
Hlookup and sum formula
I have a table with the months in row 6. Revenue is in row 9 and costs are
in rows 10 through 38. Cell c6 is 1 for January and cell c9 is January revenue. My formula to lookup the current month (stored in cell o3) is =HLOOKUP$O$3,$C$6:$M$38,4,FALSE) This works fine and returns the value in k9. But I would also like a to get the year to date revenue by adding everything from c9 to k9. |
Hlookup and sum formula
This might suffice: =SUMIF(C6:M6,"<="&O3,C9:M9)
Success? hit the YES below -- Max Singapore http://savefile.com/projects/236895 Downloads:27,000 Files:200 Subscribers:70 xdemechanik --- "SixBowls" wrote: I have a table with the months in row 6. Revenue is in row 9 and costs are in rows 10 through 38. Cell c6 is 1 for January and cell c9 is January revenue. My formula to lookup the current month (stored in cell o3) is =HLOOKUP$O$3,$C$6:$M$38,4,FALSE) This works fine and returns the value in k9. But I would also like a to get the year to date revenue by adding everything from c9 to k9. |
Hlookup and sum formula
Perfect! Thanks for the quick and effective reply.
"Max" wrote: This might suffice: =SUMIF(C6:M6,"<="&O3,C9:M9) Success? hit the YES below -- Max Singapore http://savefile.com/projects/236895 Downloads:27,000 Files:200 Subscribers:70 xdemechanik --- "SixBowls" wrote: I have a table with the months in row 6. Revenue is in row 9 and costs are in rows 10 through 38. Cell c6 is 1 for January and cell c9 is January revenue. My formula to lookup the current month (stored in cell o3) is =HLOOKUP$O$3,$C$6:$M$38,4,FALSE) This works fine and returns the value in k9. But I would also like a to get the year to date revenue by adding everything from c9 to k9. |
Hlookup and sum formula
Welcome, good to hear
-- Max Singapore http://savefile.com/projects/236895 Downloads:27,000 Files:200 Subscribers:70 xdemechanik --- "SixBowls" wrote in message ... Perfect! Thanks for the quick and effective reply. |
All times are GMT +1. The time now is 04:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com