#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hydro1guy
 
Posts: n/a
Default Cell Reference

I have identified two cells in a table using vlookup & hlookup. I want to
sum the cells referred to by the lookups.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick Hodge
 
Posts: n/a
Default Cell Reference

Hydro1guy

Just add the two lookups together

=VLOOKUP(Your_Vlookup)+HLOOKUP(Your-Hlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"hydro1guy" wrote in message
...
I have identified two cells in a table using vlookup & hlookup. I want to
sum the cells referred to by the lookups.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hydro1guy
 
Posts: n/a
Default Cell Reference

THat works but I want to sum the range of cells between the two. I think I
may have to use address but cannot get it to work. How else can I identify
the actual cell address for my range?

"Nick Hodge" wrote:

Hydro1guy

Just add the two lookups together

=VLOOKUP(Your_Vlookup)+HLOOKUP(Your-Hlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"hydro1guy" wrote in message
...
I have identified two cells in a table using vlookup & hlookup. I want to
sum the cells referred to by the lookups.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Cell Reference

If you are summing a range your best bet is to use INDEX but you need to
indentify the 2 cells (no need for ADDRESS really) maybe using MATCH

--

Regards,

Peo Sjoblom

"hydro1guy" wrote in message
...
THat works but I want to sum the range of cells between the two. I think I
may have to use address but cannot get it to work. How else can I identify
the actual cell address for my range?

"Nick Hodge" wrote:

Hydro1guy

Just add the two lookups together

=VLOOKUP(Your_Vlookup)+HLOOKUP(Your-Hlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"hydro1guy" wrote in message
...
I have identified two cells in a table using vlookup & hlookup. I want

to
sum the cells referred to by the lookups.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hydro1guy
 
Posts: n/a
Default Cell Reference

1 2 3 4 5 6
01-Jun 31 32 33 34 35 36
02-Jun 7 8 9 10 11 12
03-Jun 13 14 15 16 17 18
04-Jun 19 20 21 22 23 24
05-Jun 25 26 27 28 29 30

this is a sample table. The top row is hour and the first colum is date. I
want to sum A range of cells determined by state date/hour and end date
hour.I can find the cells to start and finish the range by using V&H lookup.
but cannot get the formula to sum them to work.

=sum((INDEX(B2:H6,VLOOKUP(B12,B2:H6,(B13+1)),HLOOK UP(B18,B2:H6,(B17+1)))))

help would be greatly appreciated

"Peo Sjoblom" wrote:

If you are summing a range your best bet is to use INDEX but you need to
indentify the 2 cells (no need for ADDRESS really) maybe using MATCH

--

Regards,

Peo Sjoblom

"hydro1guy" wrote in message
...
THat works but I want to sum the range of cells between the two. I think I
may have to use address but cannot get it to work. How else can I identify
the actual cell address for my range?

"Nick Hodge" wrote:

Hydro1guy

Just add the two lookups together

=VLOOKUP(Your_Vlookup)+HLOOKUP(Your-Hlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"hydro1guy" wrote in message
...
I have identified two cells in a table using vlookup & hlookup. I want

to
sum the cells referred to by the lookups.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Cell Reference

OK, using your example, assume start date 3-June, end date 5-Jun
start hour 2 and end hour 5, using your example that would sum to 258,
with starts dat in B12, end in B13, start time in B17 and end in B18

=SUM(INDEX(B1:H6,MATCH(B12,B1:B6,0),MATCH(B17,B1:H 1,0)):INDEX(B1:H6,MATCH(B1
3,B1:B6,0),MATCH(B18,B1:H1,0)))

--

Regards,

Peo Sjoblom

"hydro1guy" wrote in message
...
1 2 3 4 5 6
01-Jun 31 32 33 34 35 36
02-Jun 7 8 9 10 11 12
03-Jun 13 14 15 16 17 18
04-Jun 19 20 21 22 23 24
05-Jun 25 26 27 28 29 30

this is a sample table. The top row is hour and the first colum is date. I
want to sum A range of cells determined by state date/hour and end date
hour.I can find the cells to start and finish the range by using V&H

lookup.
but cannot get the formula to sum them to work.

=sum((INDEX(B2:H6,VLOOKUP(B12,B2:H6,(B13+1)),HLOOK UP(B18,B2:H6,(B17+1)))))

help would be greatly appreciated

"Peo Sjoblom" wrote:

If you are summing a range your best bet is to use INDEX but you need

to
indentify the 2 cells (no need for ADDRESS really) maybe using MATCH

--

Regards,

Peo Sjoblom

"hydro1guy" wrote in message
...
THat works but I want to sum the range of cells between the two. I

think I
may have to use address but cannot get it to work. How else can I

identify
the actual cell address for my range?

"Nick Hodge" wrote:

Hydro1guy

Just add the two lookups together

=VLOOKUP(Your_Vlookup)+HLOOKUP(Your-Hlookup)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"hydro1guy" wrote in message
...
I have identified two cells in a table using vlookup & hlookup. I

want
to
sum the cells referred to by the lookups.








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
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Cell reference problem Jim Olsen Excel Worksheet Functions 4 October 31st 05 05:47 AM
how to include a cell reference that is contained in a cell withi. dutchinny Excel Worksheet Functions 5 October 24th 05 01:07 AM
How do I leave formula cell blank if 2nd reference cell is empty? Liana S Excel Discussion (Misc queries) 2 October 21st 05 04:38 PM
Flexible Cell Reference Brandt Excel Discussion (Misc queries) 5 June 2nd 05 10:23 PM


All times are GMT +1. The time now is 05:57 AM.

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"