Hi
I have the following If function but I need to add that if all of this is false then return the value that is in cell P2. Can anyone help?
=IF(Q191=4,"1",IF(Q191=3,"2",IF(Q191=2,"3",IF(Q191=1,"4",IF(Q191=5,P191)))))
Thanks
Hi
I have the following If function but I need to add that if all of this is false then return the value that is in cell P2. Can anyone help?
=IF(Q191=4,"1",IF(Q191=3,"2",IF(Q191=2,"3",IF(Q191=1,"4",IF(Q191=5,P191)))))
Thanks
try:
=IF(IF(Q191=4,"1",IF(Q191=3,"2",IF(Q191=2,"3",IF(Q191=1,"4",IF(Q191=5,P191)))))=FALSE,P2, IF(Q191=4,"1",IF(Q191=3,"2",IF(Q191=2,"3",IF(Q191=1,"4",IF(Q191=5,P191))))))
Try:
=IF(Q191=4,"1",IF(Q191=3,"2",IF(Q191=2,"3",IF(Q191=1,"4",IF(Q191=5,P191,P2)))))
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
Hi,
You can try this:
=IF(OR(Q191<1,Q191>5),P2,CHOOSE(Q191,Q191+3,Q191+1,Q191-1,Q191-3,Q191))
HTH
Steve
Try this
Hope this helps![]()
Please Login or Register to view this content.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
Thanks! works!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks