![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Apr 2004
Location: New Jersey
Posts: 881
|
This is my formula :
=IF($D15="",(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)),IF($D15="OT",$DX15, IF($D15="F",$DX15,IF($D15="V","Vacation",IF($D15="P","Personal",IF($D15="M","MLOA",IF(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)="","Off",(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0))))))))) I'm out of IFs! I have two more conditions to add. Thanks
__________________
There is always a way... |
|
|
|
|
|
#2 |
|
Join Date: Jun 2004
Location: Philadelphia, PA
Posts: 536
|
Can you use two cells somewhere else and have them each have half of the ifs? You could have them both return "FALSE" or something and then in your final destination cell just have an IF() to return the value from either of those two?
|
|
|
|
|
|
#3 |
|
Join Date: Mar 2002
Location: Near the Land of Oz
Posts: 1,548
|
__________________
- old, slow, and confused ... but at least I'm inconsistent - (retired Excel 2003 user, 3.28.2008)
|
|
|
|
|
|
#4 | |
|
Join Date: May 2002
Location: Houston, TX
Posts: 6,000
|
Quote:
=IF($D15="",(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)),IF(or($D15="OT",$D15="F"),$DX15,IF($D15="V","Vacation",IF($D15="P","Personal",IF($D15="M","MLOA",IF(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)="","Off",(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)))))))) HTH texasalynn |
|
|
|
|
|
|
#5 |
|
Join Date: Apr 2004
Location: New Jersey
Posts: 881
|
Looks like two ggod ways to solve the problem. One question for Shades. The link you gave me instructs you to create a named formula, a user defined named for a formula?
I did not realize you can do that. How do you name a formula? Thanks
__________________
There is always a way... |
|
|
|
|
|
#6 |
|
Join Date: Dec 2003
Location: New-Delhi
Posts: 885
|
Well check it this out...
http://www.cpearson.com/excel/named.htm Is this what u have been hunting for..?? Saurabh... |
|
|
|
|
|
#7 |
|
Join Date: Apr 2004
Location: New Jersey
Posts: 881
|
Yes saurabh726
Shades provided the link earlier in the post, but thanks for your response!
__________________
There is always a way... |
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: May 2003
Posts: 8,474
|
Hi,
Try: =IF(D15="",IF(VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)="","Off",VLOOKUP($E15,Shifts!$A$2:$E$109,4,0)),CHOOSE(MATCH(D15,{"OT","F","V","P","M"},0),$DX15,$DX15,"Vacation","Personal","MLOA"))
__________________
"Fair Winds and Following Seas" |
|
|
|
|
|
#9 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 42,625
|
Quote:
The question is whether the outcomes associated with D15 are mutually exclusive. If so, a multi-cell setup would be better a chained set of IFs. |
|
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: May 2003
Posts: 8,474
|
Quote:
__________________
"Fair Winds and Following Seas" |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|