Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Michael
 
Posts: n/a
Default VLOOKUP Returns #REF

Hi Folks - I am comfortable using the VLOOKUP function. Here's my problem:

I have a 15 row column of TEXT in SHEET1 that looks like:

TimeSlot
2-3:30
3-4:30
3-4
etc.

The text represents timeslots. So, I added another column and manually
entered the minutes for each timeslot.

TimeSlot Minutes
2-3:30 90
3-4:30 90
3-4 60
etc.

On SHEET2, I have 10,000 rows of class and timeslot information:

Session TimeSlot
Class1 2-3:30
Class2 3-4:30

etc.

I need to lookup the minutes for each session, so, in SHEET2, I used the
vlookup function to look at the timeslot in the TimeSlot column, then lookup
the slot in SHEET2, to return the minutes in the second column.

I get a #REF error. Quick question .. Can Vlookup 'lookup' text? Any ideas?
Thanks.

Michael



  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

I think this is what you need

=INDEX(Sheet2!A:A,MATCH(A2,Sheet2!B:B,0))

BTW, you can calcualte the minutes with

=TIMEVALUE(RIGHT(A2,LEN(A2)-FIND("-",A2)))*1440-LEFT(A2,FIND("-",A2)-1)*60


--
HTH

Bob Phillips

"Michael" wrote in message
news:K7wXe.24987$8q.757@lakeread01...
Hi Folks - I am comfortable using the VLOOKUP function. Here's my problem:

I have a 15 row column of TEXT in SHEET1 that looks like:

TimeSlot
2-3:30
3-4:30
3-4
etc.

The text represents timeslots. So, I added another column and manually
entered the minutes for each timeslot.

TimeSlot Minutes
2-3:30 90
3-4:30 90
3-4 60
etc.

On SHEET2, I have 10,000 rows of class and timeslot information:

Session TimeSlot
Class1 2-3:30
Class2 3-4:30

etc.

I need to lookup the minutes for each session, so, in SHEET2, I used the
vlookup function to look at the timeslot in the TimeSlot column, then

lookup
the slot in SHEET2, to return the minutes in the second column.

I get a #REF error. Quick question .. Can Vlookup 'lookup' text? Any

ideas?
Thanks.

Michael





  #3   Report Post  
Michael
 
Posts: n/a
Default

Bob - Thanks for the additional help .... but it turns out it was USER ERROR
..... MINE!

Michael


"Bob Phillips" wrote in message
...
I think this is what you need

=INDEX(Sheet2!A:A,MATCH(A2,Sheet2!B:B,0))

BTW, you can calcualte the minutes with

=TIMEVALUE(RIGHT(A2,LEN(A2)-FIND("-",A2)))*1440-LEFT(A2,FIND("-",A2)-1)*60


--
HTH

Bob Phillips

"Michael" wrote in message
news:K7wXe.24987$8q.757@lakeread01...
Hi Folks - I am comfortable using the VLOOKUP function. Here's my

problem:

I have a 15 row column of TEXT in SHEET1 that looks like:

TimeSlot
2-3:30
3-4:30
3-4
etc.

The text represents timeslots. So, I added another column and manually
entered the minutes for each timeslot.

TimeSlot Minutes
2-3:30 90
3-4:30 90
3-4 60
etc.

On SHEET2, I have 10,000 rows of class and timeslot information:

Session TimeSlot
Class1 2-3:30
Class2 3-4:30

etc.

I need to lookup the minutes for each session, so, in SHEET2, I used the
vlookup function to look at the timeslot in the TimeSlot column, then

lookup
the slot in SHEET2, to return the minutes in the second column.

I get a #REF error. Quick question .. Can Vlookup 'lookup' text? Any

ideas?
Thanks.

Michael







  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

We ourselves are the worst types of user, no-one to blame <vbg

Bob

"Michael" wrote in message
news:sCwXe.24988$8q.21342@lakeread01...
Bob - Thanks for the additional help .... but it turns out it was USER

ERROR
.... MINE!

Michael


"Bob Phillips" wrote in message
...
I think this is what you need

=INDEX(Sheet2!A:A,MATCH(A2,Sheet2!B:B,0))

BTW, you can calcualte the minutes with


=TIMEVALUE(RIGHT(A2,LEN(A2)-FIND("-",A2)))*1440-LEFT(A2,FIND("-",A2)-1)*60


--
HTH

Bob Phillips

"Michael" wrote in message
news:K7wXe.24987$8q.757@lakeread01...
Hi Folks - I am comfortable using the VLOOKUP function. Here's my

problem:

I have a 15 row column of TEXT in SHEET1 that looks like:

TimeSlot
2-3:30
3-4:30
3-4
etc.

The text represents timeslots. So, I added another column and manually
entered the minutes for each timeslot.

TimeSlot Minutes
2-3:30 90
3-4:30 90
3-4 60
etc.

On SHEET2, I have 10,000 rows of class and timeslot information:

Session TimeSlot
Class1 2-3:30
Class2 3-4:30

etc.

I need to lookup the minutes for each session, so, in SHEET2, I used

the
vlookup function to look at the timeslot in the TimeSlot column, then

lookup
the slot in SHEET2, to return the minutes in the second column.

I get a #REF error. Quick question .. Can Vlookup 'lookup' text? Any

ideas?
Thanks.

Michael









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
VLOOKUP using a cell calculated with NOW returns Error Chris Berding Excel Worksheet Functions 2 August 21st 05 03:22 AM
VLOOKUP with duplicate returns dandigger Excel Discussion (Misc queries) 4 January 28th 05 07:13 AM
Vlookup finds a blank, but returns a zero - HELP! flummoxed Excel Discussion (Misc queries) 6 January 18th 05 03:15 PM
When VLOOKUP returns a #N/A How can you get it to replace #N/A wi. Cmatise Excel Worksheet Functions 10 January 12th 05 12:29 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 10:36 PM.

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"