Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Summing up with Hlookup

Hi, I am trying to sum up values which I obtain with an Hlookup.
On my first sheet I have a Date From in cell B3 and a Date To in cell B4. I
have to sum the values between Date From and Date To by using a Hlookup to
read data on another sheet.
Example :
Sheet 1 Cell B3 01/06/2008 (format dd/mm/yyyy)
B4 03/06/2008
B6 Total Revenue = ??? (I used Hlookup)
Sheet 2: A B C D
E (columns)
Row 1 01/06/2008 02/06/2008 03/06/2008 04/06/2008 Etc...
Row 20 2000 1500 2500 4000

In row 20 I have the Revenue. I need to add up all the figures in row 20
that falls in my date range on Sheet 1(ie here 2000+1500+2500). Can somebody
help me with this problem.
Thanks
Danielle



  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Summing up with Hlookup

One way
In Sheet1,
In B6:
=SUMPRODUCT((Sheet2!1:1=B3)*(Sheet2!1:1<=B4),Shee t2!20:20)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Danie" wrote:
Hi, I am trying to sum up values which I obtain with an Hlookup.
On my first sheet I have a Date From in cell B3 and a Date To in cell B4. I
have to sum the values between Date From and Date To by using a Hlookup to
read data on another sheet.
Example :
Sheet 1 Cell B3 01/06/2008 (format dd/mm/yyyy)
B4 03/06/2008
B6 Total Revenue = ??? (I used Hlookup)
Sheet 2: A B C D
E (columns)
Row 1 01/06/2008 02/06/2008 03/06/2008 04/06/2008 Etc...
Row 20 2000 1500 2500 4000

In row 20 I have the Revenue. I need to add up all the figures in row 20
that falls in my date range on Sheet 1(ie here 2000+1500+2500). Can somebody
help me with this problem.
Thanks
Danielle



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Summing up with Hlookup

Try this in B6

=SUMIF(Sheet2!A1:Q1,"="&B3,Sheet2!A20:Q20)-SUMIF(Sheet2!A1:Q1,""&B4,Sheet2!A20:Q20)

Format as general. Adjust the ranges to suit

Mike

"Danie" wrote:

Hi, I am trying to sum up values which I obtain with an Hlookup.
On my first sheet I have a Date From in cell B3 and a Date To in cell B4. I
have to sum the values between Date From and Date To by using a Hlookup to
read data on another sheet.
Example :
Sheet 1 Cell B3 01/06/2008 (format dd/mm/yyyy)
B4 03/06/2008
B6 Total Revenue = ??? (I used Hlookup)
Sheet 2: A B C D
E (columns)
Row 1 01/06/2008 02/06/2008 03/06/2008 04/06/2008 Etc...
Row 20 2000 1500 2500 4000

In row 20 I have the Revenue. I need to add up all the figures in row 20
that falls in my date range on Sheet 1(ie here 2000+1500+2500). Can somebody
help me with this problem.
Thanks
Danielle



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Summing up with Hlookup

Hi Max,
It works perfectly.
Thx so much.
Danielle

"Max" wrote:

One way
In Sheet1,
In B6:
=SUMPRODUCT((Sheet2!1:1=B3)*(Sheet2!1:1<=B4),Shee t2!20:20)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Danie" wrote:
Hi, I am trying to sum up values which I obtain with an Hlookup.
On my first sheet I have a Date From in cell B3 and a Date To in cell B4. I
have to sum the values between Date From and Date To by using a Hlookup to
read data on another sheet.
Example :
Sheet 1 Cell B3 01/06/2008 (format dd/mm/yyyy)
B4 03/06/2008
B6 Total Revenue = ??? (I used Hlookup)
Sheet 2: A B C D
E (columns)
Row 1 01/06/2008 02/06/2008 03/06/2008 04/06/2008 Etc...
Row 20 2000 1500 2500 4000

In row 20 I have the Revenue. I need to add up all the figures in row 20
that falls in my date range on Sheet 1(ie here 2000+1500+2500). Can somebody
help me with this problem.
Thanks
Danielle



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Summing up with Hlookup

Thanks Mike I will try it.

"Mike H" wrote:

Try this in B6

=SUMIF(Sheet2!A1:Q1,"="&B3,Sheet2!A20:Q20)-SUMIF(Sheet2!A1:Q1,""&B4,Sheet2!A20:Q20)

Format as general. Adjust the ranges to suit

Mike

"Danie" wrote:

Hi, I am trying to sum up values which I obtain with an Hlookup.
On my first sheet I have a Date From in cell B3 and a Date To in cell B4. I
have to sum the values between Date From and Date To by using a Hlookup to
read data on another sheet.
Example :
Sheet 1 Cell B3 01/06/2008 (format dd/mm/yyyy)
B4 03/06/2008
B6 Total Revenue = ??? (I used Hlookup)
Sheet 2: A B C D
E (columns)
Row 1 01/06/2008 02/06/2008 03/06/2008 04/06/2008 Etc...
Row 20 2000 1500 2500 4000

In row 20 I have the Revenue. I need to add up all the figures in row 20
that falls in my date range on Sheet 1(ie here 2000+1500+2500). Can somebody
help me with this problem.
Thanks
Danielle





  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Summing up with Hlookup

Welcome, Danielle. Do spare a moment to click the "Yes" button below.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Danie" wrote:
Hi Max,
It works perfectly.
Thx so much.
Danielle

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
summing an hlookup mike_vr Excel Discussion (Misc queries) 2 January 31st 08 04:00 PM
V+HLookup? Susan Excel Discussion (Misc queries) 3 June 22nd 07 06:20 PM
PivotTable and summing/not summing ~*Amanda*~[_2_] Excel Discussion (Misc queries) 1 March 14th 07 07:35 PM
Summing HLookup Values TomCat Excel Worksheet Functions 16 July 24th 06 02:54 AM
hlookup #N/A stacyjhaskins Excel Worksheet Functions 2 June 27th 05 09:31 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"