Hello
I have these 2 formulas:
=IF ( D7 > D8 , C7 , C8 )
=IF ( D7 < D8 , C8 , C7 )
unendole dovrebbere essere:
= IF (( D7 > D8 , C7 , C8 ) ; IF ( D7 < D8 , C8 , C7 ) , "" )
but makes a mistake, where am I wrong?
max_max
Hello
I have these 2 formulas:
=IF ( D7 > D8 , C7 , C8 )
=IF ( D7 < D8 , C8 , C7 )
unendole dovrebbere essere:
= IF (( D7 > D8 , C7 , C8 ) ; IF ( D7 < D8 , C8 , C7 ) , "" )
but makes a mistake, where am I wrong?
max_max
Formula:
Please Login or Register to view this content.
My General Rules if you want my help. Not aimed at any person in particular:
1. Please Make Requests not demands, none of us get paid here.
2. Check back on your post regularly. I will not return to a post after 4 days.
If it is not important to you then it definitely is not important to me.
hi max_max. and the reason why your formula is not working is because:
1. i don't know if it's for clearer presentation, but you need to get rid of the spaces after the formula name:
= IF_(
2. you need to follow the Excel tip when doing the formula. when you type in the first IF(, you will see Excel show:
logical_test,[value_if_true],[value_if_false]
the bold part is where you are working on.
your 2nd open parenthesis after the IF formula is unnecessary. = IF ((
so your logical_test should be:
D7 > D8
now confirm your logical_test by pressing comma. that will result in the excel tip to be:
logical_test,[value_if_true],[value_if_false]
so if D7 is greater than D8, you want to show C7.
put a comma to confirm and the excel tip now shows:
logical_test,[value_if_true],[value_if_false]
because you want to add in more tests, you cannot end this argument with C8. if it's FALSE (ie D7 NOT greater than D8), you want to input another logical test. so:
= IF( D7 > D8 , C7 , IF( D7 < D8
again, if the logical test is TRUE, show C8, and if it's FALSE, it means it has failed both the 1st logical test (D7 NOT greater than D8) and 2nd logical test (D7 NOT lesser than D8). that leaves only 1 possibility; equals to D8. so just leave the last [value_if_false] as blank. close two parenthesis as you used two IFs.
= IF( D7 > D8, C7, IF( D7 < D8, C8, "" ))
another way though:
=CHOOSE(SIGN(D7-D8)+2,C8,"",C7)
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Hello,
thank you all.
max_max
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks