Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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.



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
IS THERE ANY FORMULA IN EXCEL THAT CAN DO THIS? HLOOKUP MAYBE? HERNAN Excel Discussion (Misc queries) 1 June 19th 09 03:20 PM
Formula help on HLookup / VLookup ?? gcw Excel Worksheet Functions 2 November 21st 08 07:28 PM
vlookup and hlookup in the same formula lindsayhyle Excel Discussion (Misc queries) 6 August 3rd 07 03:46 PM
array formula with if and hlookup bport jim Excel Worksheet Functions 5 January 8th 07 03:26 AM
formula using both vlookup & hlookup xFreeAdvice Excel Worksheet Functions 2 November 17th 04 11:19 PM


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