LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default If Statement

That worked perfectly. But one other thing. If field 'Week 2'!E20 is blank,
can I get it to produce a blank. I tried your example and used X1 and Y1 as
blanks, but it did not work. I guess I could type something there and change
the font color, but that is a cheap work around. Trying to get this right.


"Pete_UK" wrote:

Basically, you build up a table somewhere on your worksheet, e.g. in X1:Y10
and you just list the choices like this:

Annual A
Sick S
Personal PL
FLSA Comp F
GA Comp G
Holiday H
Pass P
Leave W/O Pay AD

Then you would have one formula along the lines of:

=VLOOKUP('Week 2'!E20,X$1:Y$10,2,0)

and that will return the appropriate letter code.

Hope this helps.

Pete


"ppidgursky" wrote in message
...
I have looked at it but that is new territory for me. Any suggestions?

"Don Guillett" wrote:

Have a look in the help index for VLOOKUP

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ppidgursky" wrote in message
...
I am looking to add more items to a IF statement. The current
is:=IF('Week
2'!$E$20="Annual","A",IF('Week 2'!$E$20="Sick","S",IF('Week
2'!$E$20="Personal","PL",IF('Week 2'!$E$20="FLSA Comp","F",IF('Week
2'!$E$20="GA Comp","G",IF('Week 2'!$E$20="Holiday","H",IF('Week
2'!$E$20="Pass","P",IF('Week 2'!$E$20="Leave W/O Pay","AD",""))))))))

I know excel says you can not use more than 7 functions in function.
The
above function has 8 levels, and I need to add two more.
The current looks at a cell on 'Week2' and if the field displays
"Annual"
for example, on the 2nd sheet it shows an "A". Using the same fields I
want
to add 2 more; "Military Leave" to display as "M", and "Jury Duty" as
"D".
I am loosing my patience on this one. Please Help.





 
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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
if statement Dorothy Rural New Jersey Excel Worksheet Functions 10 January 12th 07 08:05 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 09:27 PM.

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"