Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Problem w/vlookup

I have created a employee absentee form. In comment area, want to type in
number from range that automatically types in description from same range.

=IF(OR(VLOOKUP(D55,(H3:I13),2,FALSE)),(VLOOKUP(D55 ,(L3:M13),2,FALSE)),(VLOOKUP(D55,(O3:P9),2,FALSE)) )


SUMMARY OF COMMUNICATION:
Date Code Reason
1/1/08 A 10 #VALUE!


H I L M
O P

No. Reason No. Reason No. Reason
1 Accident - Self or family 11 Injury on Job 22 Weather
12 Jury Duty/Court 23 Work Comp-Hours
2 Comp. Time 13 Leave w/o pay
3 Death in Family 14 Medical Appt. 24 Work Comp-Sick
4 Disaster 15 Military
5 Discipline 16 Personal 25 Work Comp-Vacation
6 Family Sickness 17 Shared Leave
7 Floating Holiday 18 Sick (employee)
8 FMLA-Leave w/o pay 19 Suspended w/Pay
9 FMLA-Sick 20 Transportation
10 FMLA-Vacation 21 Unknown
I thought I could use an if then statement, but that was from back when I
did formulas in spreadsheet in 80's.

Any help would be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Problem w/vlookup

=IF(ISNA(VLOOKUP(D55,H3:I13,2,0)),IF(ISNA(VLOOKUP( D55,L3:M13,2,0)),IF(ISNA(VLOOKUP(D55,H3:I13,2,0)), "Not
found",VLOOKUP(D2,O1:P10,2,0)),VLOOKUP(D55,L3:M13, 2,0)),VLOOKUP(D55,H3:I13,2,0))

"Sandy" wrote:

I have created a employee absentee form. In comment area, want to type in
number from range that automatically types in description from same range.

=IF(OR(VLOOKUP(D55,(H3:I13),2,FALSE)),(VLOOKUP(D55 ,(L3:M13),2,FALSE)),(VLOOKUP(D55,(O3:P9),2,FALSE)) )


SUMMARY OF COMMUNICATION:
Date Code Reason
1/1/08 A 10 #VALUE!


H I L M
O P

No. Reason No. Reason No. Reason
1 Accident - Self or family 11 Injury on Job 22 Weather
12 Jury Duty/Court 23 Work Comp-Hours
2 Comp. Time 13 Leave w/o pay
3 Death in Family 14 Medical Appt. 24 Work Comp-Sick
4 Disaster 15 Military
5 Discipline 16 Personal 25 Work Comp-Vacation
6 Family Sickness 17 Shared Leave
7 Floating Holiday 18 Sick (employee)
8 FMLA-Leave w/o pay 19 Suspended w/Pay
9 FMLA-Sick 20 Transportation
10 FMLA-Vacation 21 Unknown
I thought I could use an if then statement, but that was from back when I
did formulas in spreadsheet in 80's.

Any help would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Problem w/vlookup

=IF(OR(D55="",D55=0),"",IF(D55<11,VLOOKUP(D55,H3:I 13,2,FALSE),IF(D55<21,VLOOKUP(D55,L3:M13,2,FALSE), VLOOKUP(D55,O3:P9,2,FALSE))))

Hope this helps.
--
John C


"Sandy" wrote:

I have created a employee absentee form. In comment area, want to type in
number from range that automatically types in description from same range.

=IF(OR(VLOOKUP(D55,(H3:I13),2,FALSE)),(VLOOKUP(D55 ,(L3:M13),2,FALSE)),(VLOOKUP(D55,(O3:P9),2,FALSE)) )


SUMMARY OF COMMUNICATION:
Date Code Reason
1/1/08 A 10 #VALUE!


H I L M
O P

No. Reason No. Reason No. Reason
1 Accident - Self or family 11 Injury on Job 22 Weather
12 Jury Duty/Court 23 Work Comp-Hours
2 Comp. Time 13 Leave w/o pay
3 Death in Family 14 Medical Appt. 24 Work Comp-Sick
4 Disaster 15 Military
5 Discipline 16 Personal 25 Work Comp-Vacation
6 Family Sickness 17 Shared Leave
7 Floating Holiday 18 Sick (employee)
8 FMLA-Leave w/o pay 19 Suspended w/Pay
9 FMLA-Sick 20 Transportation
10 FMLA-Vacation 21 Unknown
I thought I could use an if then statement, but that was from back when I
did formulas in spreadsheet in 80's.

Any help would be appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Problem w/vlookup

I am also assuming with my formula that D55 has data validation to limit it
to valid entries of nothing (or 0) to 25 in whole numbers.
--
John C


"Sandy" wrote:

I have created a employee absentee form. In comment area, want to type in
number from range that automatically types in description from same range.

=IF(OR(VLOOKUP(D55,(H3:I13),2,FALSE)),(VLOOKUP(D55 ,(L3:M13),2,FALSE)),(VLOOKUP(D55,(O3:P9),2,FALSE)) )


SUMMARY OF COMMUNICATION:
Date Code Reason
1/1/08 A 10 #VALUE!


H I L M
O P

No. Reason No. Reason No. Reason
1 Accident - Self or family 11 Injury on Job 22 Weather
12 Jury Duty/Court 23 Work Comp-Hours
2 Comp. Time 13 Leave w/o pay
3 Death in Family 14 Medical Appt. 24 Work Comp-Sick
4 Disaster 15 Military
5 Discipline 16 Personal 25 Work Comp-Vacation
6 Family Sickness 17 Shared Leave
7 Floating Holiday 18 Sick (employee)
8 FMLA-Leave w/o pay 19 Suspended w/Pay
9 FMLA-Sick 20 Transportation
10 FMLA-Vacation 21 Unknown
I thought I could use an if then statement, but that was from back when I
did formulas in spreadsheet in 80's.

Any help would be appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 355
Default Problem w/vlookup

Thank you so much for your time and effort. The formula works perfectly.

"John C" wrote:

I am also assuming with my formula that D55 has data validation to limit it
to valid entries of nothing (or 0) to 25 in whole numbers.
--
John C


"Sandy" wrote:

I have created a employee absentee form. In comment area, want to type in
number from range that automatically types in description from same range.

=IF(OR(VLOOKUP(D55,(H3:I13),2,FALSE)),(VLOOKUP(D55 ,(L3:M13),2,FALSE)),(VLOOKUP(D55,(O3:P9),2,FALSE)) )


SUMMARY OF COMMUNICATION:
Date Code Reason
1/1/08 A 10 #VALUE!


H I L M
O P

No. Reason No. Reason No. Reason
1 Accident - Self or family 11 Injury on Job 22 Weather
12 Jury Duty/Court 23 Work Comp-Hours
2 Comp. Time 13 Leave w/o pay
3 Death in Family 14 Medical Appt. 24 Work Comp-Sick
4 Disaster 15 Military
5 Discipline 16 Personal 25 Work Comp-Vacation
6 Family Sickness 17 Shared Leave
7 Floating Holiday 18 Sick (employee)
8 FMLA-Leave w/o pay 19 Suspended w/Pay
9 FMLA-Sick 20 Transportation
10 FMLA-Vacation 21 Unknown
I thought I could use an if then statement, but that was from back when I
did formulas in spreadsheet in 80's.

Any help would be appreciated.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Problem w/vlookup

Thanks for the feedback :)
--
John C


"Sandy" wrote:

Thank you so much for your time and effort. The formula works perfectly.

"John C" wrote:

I am also assuming with my formula that D55 has data validation to limit it
to valid entries of nothing (or 0) to 25 in whole numbers.
--
John C


"Sandy" wrote:

I have created a employee absentee form. In comment area, want to type in
number from range that automatically types in description from same range.

=IF(OR(VLOOKUP(D55,(H3:I13),2,FALSE)),(VLOOKUP(D55 ,(L3:M13),2,FALSE)),(VLOOKUP(D55,(O3:P9),2,FALSE)) )


SUMMARY OF COMMUNICATION:
Date Code Reason
1/1/08 A 10 #VALUE!


H I L M
O P

No. Reason No. Reason No. Reason
1 Accident - Self or family 11 Injury on Job 22 Weather
12 Jury Duty/Court 23 Work Comp-Hours
2 Comp. Time 13 Leave w/o pay
3 Death in Family 14 Medical Appt. 24 Work Comp-Sick
4 Disaster 15 Military
5 Discipline 16 Personal 25 Work Comp-Vacation
6 Family Sickness 17 Shared Leave
7 Floating Holiday 18 Sick (employee)
8 FMLA-Leave w/o pay 19 Suspended w/Pay
9 FMLA-Sick 20 Transportation
10 FMLA-Vacation 21 Unknown
I thought I could use an if then statement, but that was from back when I
did formulas in spreadsheet in 80's.

Any help would be appreciated.

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 problem Fellow Wanderer Excel Discussion (Misc queries) 5 October 3rd 08 06:37 PM
Vlookup problem Belinda7237 Excel Worksheet Functions 6 July 18th 08 11:21 PM
Vlookup problem Peter Excel Worksheet Functions 4 January 18th 07 12:02 AM
VLOOKUP problem with using a - MrSales Excel Worksheet Functions 3 May 31st 06 12:05 AM
VLOOKUP problem Jaladino Excel Discussion (Misc queries) 1 March 2nd 05 04:02 AM


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