#1   Report Post  
Posted to microsoft.public.excel.misc
Big Rick
 
Posts: n/a
Default Tidyup of IF formula

Hello folks.

I have the following formula that does do the the required job.
Is it possible for it to be 'tidied up', possibly with a lookup formula.

=IF(Apr!$C5="","X",IF(Apr!$C5="Holiday","Hol.",IF( Apr!$C5="Sick","Sick",IF(Apr!$C5="Worked","Work",I F(Apr!$C5="Day
Off","D / O",IF(Apr!$C5="Wrk & 1/2 Hol","½ Hol.",""))))))

Your help is and always has been very much appreciated.
Thanking you in anticipation.
--
Big Rick
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Tidyup of IF formula

If you create a table like this

Holiday Hol
Sick Sick
Worked Work
Day Off D / O
Wrk $ 1/2 Hol" 1/2 Hol


put it somewhere off view maybe Y1:Z5 then you can use

=IF(Apr!$C5="","X",VLOOKUP(Apr!C5,Y1:Z5,2,0))

hard coded it would look like

=IF(Apr!$C5="","X",VLOOKUP(Apr!C5,{"Holiday","Hol" ;"Sick","Sick";"Worked","Work";"Day
Off","D / O";"Wrk $ 1/2 Hol""","1/2 Hol"},2,0))



--

Regards,

Peo Sjoblom


"Big Rick" wrote in message
...
Hello folks.

I have the following formula that does do the the required job.
Is it possible for it to be 'tidied up', possibly with a lookup formula.

=IF(Apr!$C5="","X",IF(Apr!$C5="Holiday","Hol.",IF( Apr!$C5="Sick","Sick",IF(Apr!$C5="Worked","Work",I F(Apr!$C5="Day
Off","D / O",IF(Apr!$C5="Wrk & 1/2 Hol","½ Hol.",""))))))

Your help is and always has been very much appreciated.
Thanking you in anticipation.
--
Big Rick



  #3   Report Post  
Posted to microsoft.public.excel.misc
Big Rick
 
Posts: n/a
Default Tidyup of IF formula

Dear Peo.
I bow down to your superiority.

Fantastic. Thank you very much.
--
Big Rick


"Peo Sjoblom" wrote:

If you create a table like this

Holiday Hol
Sick Sick
Worked Work
Day Off D / O
Wrk $ 1/2 Hol" 1/2 Hol


put it somewhere off view maybe Y1:Z5 then you can use

=IF(Apr!$C5="","X",VLOOKUP(Apr!C5,Y1:Z5,2,0))

hard coded it would look like

=IF(Apr!$C5="","X",VLOOKUP(Apr!C5,{"Holiday","Hol" ;"Sick","Sick";"Worked","Work";"Day
Off","D / O";"Wrk $ 1/2 Hol""","1/2 Hol"},2,0))



--

Regards,

Peo Sjoblom


"Big Rick" wrote in message
...
Hello folks.

I have the following formula that does do the the required job.
Is it possible for it to be 'tidied up', possibly with a lookup formula.

=IF(Apr!$C5="","X",IF(Apr!$C5="Holiday","Hol.",IF( Apr!$C5="Sick","Sick",IF(Apr!$C5="Worked","Work",I F(Apr!$C5="Day
Off","D / O",IF(Apr!$C5="Wrk & 1/2 Hol","½ Hol.",""))))))

Your help is and always has been very much appreciated.
Thanking you in anticipation.
--
Big Rick




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
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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