Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DW DW is offline
external usenet poster
 
Posts: 26
Default What formula can I use for this? Am a bit confused

I have a list of names and times and a value (number). In another sheet, I
have the same list of names, but here, I'm trying to match up with that
first list and either display the number or the time value next to the name.

sheet 1

col A col B col C
Joe 34 0:50 (formatted as h:mm)
Fred 42 0:20
John 60 2:20

Sheet 2

col A col B
Joe if sheet 1 col C 2 hours then display sheet 1 col C else
display sheet 1 col B
Fred
John

Hope someone can help.

DW


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default What formula can I use for this? Am a bit confused

=IF(VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0)--"2:00",VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0),VLOOKUP(A1 ,Sheet1!$A$1:$C$3,2,0))


"DW" wrote:

I have a list of names and times and a value (number). In another sheet, I
have the same list of names, but here, I'm trying to match up with that
first list and either display the number or the time value next to the name.

sheet 1

col A col B col C
Joe 34 0:50 (formatted as h:mm)
Fred 42 0:20
John 60 2:20

Sheet 2

col A col B
Joe if sheet 1 col C 2 hours then display sheet 1 col C else
display sheet 1 col B
Fred
John

Hope someone can help.

DW



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default What formula can I use for this? Am a bit confused

=IF(VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0)--"2:00",VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0),TEXT(VLOOK UP(A1,Sheet1!$A$1:$C$3,2,0),"h:mm"))


"Teethless mama" wrote:

=IF(VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0)--"2:00",VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0),VLOOKUP(A1 ,Sheet1!$A$1:$C$3,2,0))


"DW" wrote:

I have a list of names and times and a value (number). In another sheet, I
have the same list of names, but here, I'm trying to match up with that
first list and either display the number or the time value next to the name.

sheet 1

col A col B col C
Joe 34 0:50 (formatted as h:mm)
Fred 42 0:20
John 60 2:20

Sheet 2

col A col B
Joe if sheet 1 col C 2 hours then display sheet 1 col C else
display sheet 1 col B
Fred
John

Hope someone can help.

DW



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DW DW is offline
external usenet poster
 
Posts: 26
Default What formula can I use for this? Am a bit confused

Thank you dear.....this helped quite a bit........
"Teethless mama" wrote in message
...
=IF(VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0)--"2:00",VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0),TEXT(VLOOK UP(A1,Sheet1!$A$1:$C$3,2,0),"h:mm"))


"Teethless mama" wrote:

=IF(VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0)--"2:00",VLOOKUP(A1,Sheet1!$A$1:$C$3,3,0),VLOOKUP(A1 ,Sheet1!$A$1:$C$3,2,0))


"DW" wrote:

I have a list of names and times and a value (number). In another
sheet, I
have the same list of names, but here, I'm trying to match up with that
first list and either display the number or the time value next to the
name.

sheet 1

col A col B col C
Joe 34 0:50 (formatted as h:mm)
Fred 42 0:20
John 60 2:20

Sheet 2

col A col B
Joe if sheet 1 col C 2 hours then display sheet 1 col C else
display sheet 1 col B
Fred
John

Hope someone can help.

DW







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DW DW is offline
external usenet poster
 
Posts: 26
Default What formula can I use for this? Am a bit confused

Oh, Don G., that helped a lot......NOT.....

Thank you Teethless Mama......Yours was much better and showed me where I
was going wrong......

D

"Don Guillett" wrote in message
...

Have a look in the help index for VLOOKUP

--
Don Guillett
SalesAid Software

"DW" wrote in message
...
I have a list of names and times and a value (number). In another sheet, I
have the same list of names, but here, I'm trying to match up with that
first list and either display the number or the time value next to the
name.

sheet 1

col A col B col C
Joe 34 0:50 (formatted as h:mm)
Fred 42 0:20
John 60 2:20

Sheet 2

col A col B
Joe if sheet 1 col C 2 hours then display sheet 1 col C else
display sheet 1 col B
Fred
John

Hope someone can help.

DW





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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
If formula - got myself confused! JoFo Excel Worksheet Functions 5 July 19th 06 10:47 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


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