#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Lookup help

Hello
I have a grid with hourly data. For each day of the month. Hours ending
1-24 in cells C2:Z2 and date in B2:B33. I am trying to convert the tabular
data to columnar data. In B41:B785 I have the date/time dd/mm/yyyy hh:mm. I
can use INDEX(My_Range,DAY($B41),HOUR($B41)) for hours 1-23 but it doesnt
work in 24. I could change my table to 0-23 and it would work but I would
rather not do that.
Any ideas?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Lookup help

On second though changing 0-23 wont work :-)

"Sandy" wrote:

Hello
I have a grid with hourly data. For each day of the month. Hours ending
1-24 in cells C2:Z2 and date in B2:B33. I am trying to convert the tabular
data to columnar data. In B41:B785 I have the date/time dd/mm/yyyy hh:mm. I
can use INDEX(My_Range,DAY($B41),HOUR($B41)) for hours 1-23 but it doesnt
work in 24. I could change my table to 0-23 and it would work but I would
rather not do that.
Any ideas?
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup help

On second though changing 0-23 wont work :-)

It should:

=INDEX(My_Range,DAY($B41),MATCH(HOUR($B41),$C$2:$Z $2,0))

Where C2:Z2 = 0 to 23

--
Biff
Microsoft Excel MVP


"Sandy" wrote in message
...
On second though changing 0-23 wont work :-)

"Sandy" wrote:

Hello
I have a grid with hourly data. For each day of the month. Hours ending
1-24 in cells C2:Z2 and date in B2:B33. I am trying to convert the
tabular
data to columnar data. In B41:B785 I have the date/time dd/mm/yyyy
hh:mm. I
can use INDEX(My_Range,DAY($B41),HOUR($B41)) for hours 1-23 but it doesnt
work in 24. I could change my table to 0-23 and it would work but I
would
rather not do that.
Any ideas?
Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Lookup help

Thanks!

"T. Valko" wrote:

On second though changing 0-23 wont work :-)


It should:

=INDEX(My_Range,DAY($B41),MATCH(HOUR($B41),$C$2:$Z $2,0))

Where C2:Z2 = 0 to 23

--
Biff
Microsoft Excel MVP


"Sandy" wrote in message
...
On second though changing 0-23 wont work :-)

"Sandy" wrote:

Hello
I have a grid with hourly data. For each day of the month. Hours ending
1-24 in cells C2:Z2 and date in B2:B33. I am trying to convert the
tabular
data to columnar data. In B41:B785 I have the date/time dd/mm/yyyy
hh:mm. I
can use INDEX(My_Range,DAY($B41),HOUR($B41)) for hours 1-23 but it doesnt
work in 24. I could change my table to 0-23 and it would work but I
would
rather not do that.
Any ideas?
Thanks!




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Lookup help

Hey Biff
One little problem with the hour 24 of the last day of the month, it shows
as day 1. Is there a work around??
Thanks for your help


"T. Valko" wrote:

On second though changing 0-23 wont work :-)


It should:

=INDEX(My_Range,DAY($B41),MATCH(HOUR($B41),$C$2:$Z $2,0))

Where C2:Z2 = 0 to 23

--
Biff
Microsoft Excel MVP


"Sandy" wrote in message
...
On second though changing 0-23 wont work :-)

"Sandy" wrote:

Hello
I have a grid with hourly data. For each day of the month. Hours ending
1-24 in cells C2:Z2 and date in B2:B33. I am trying to convert the
tabular
data to columnar data. In B41:B785 I have the date/time dd/mm/yyyy
hh:mm. I
can use INDEX(My_Range,DAY($B41),HOUR($B41)) for hours 1-23 but it doesnt
work in 24. I could change my table to 0-23 and it would work but I
would
rather not do that.
Any ideas?
Thanks!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup help

Hmmm...

Well, I'd need to be able see what you're trying to do to figure it out. If
you can/want to send me a small sample file that demonstrates exactly what
you're doing I should be able to figure it out.

If you want to do that I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

Or, you can upload a small sample file to a free file host then post a link
to that file. Here are a couple of free file hosts:

http://translate.google.com/translat...l%3Den%26lr%3D

http://www.freefilehosting.net

The first link is one I use frequently. It's a French site translated to
English. The uploaded file is removed after a few weeks and the link will
"break" at that time.

--
Biff
Microsoft Excel MVP


"Sandy" wrote in message
...
Hey Biff
One little problem with the hour 24 of the last day of the month, it
shows
as day 1. Is there a work around??
Thanks for your help


"T. Valko" wrote:

On second though changing 0-23 wont work :-)


It should:

=INDEX(My_Range,DAY($B41),MATCH(HOUR($B41),$C$2:$Z $2,0))

Where C2:Z2 = 0 to 23

--
Biff
Microsoft Excel MVP


"Sandy" wrote in message
...
On second though changing 0-23 wont work :-)

"Sandy" wrote:

Hello
I have a grid with hourly data. For each day of the month. Hours
ending
1-24 in cells C2:Z2 and date in B2:B33. I am trying to convert the
tabular
data to columnar data. In B41:B785 I have the date/time dd/mm/yyyy
hh:mm. I
can use INDEX(My_Range,DAY($B41),HOUR($B41)) for hours 1-23 but it
doesnt
work in 24. I could change my table to 0-23 and it would work but I
would
rather not do that.
Any ideas?
Thanks!






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
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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