I need to put a formula in cell H9 that does the following
if cell F9 is closer to cell G5 than cell F8 than = "Yes" else "NO"
Example:
G5 = 429
F8 = -696
F9= -200
Result = "YES"
Example:
G5 = 429
F8 = 431
F9= 418
Result = "NO"
I need to put a formula in cell H9 that does the following
if cell F9 is closer to cell G5 than cell F8 than = "Yes" else "NO"
Example:
G5 = 429
F8 = -696
F9= -200
Result = "YES"
Example:
G5 = 429
F8 = 431
F9= 418
Result = "NO"
Try
=IF((F9-G5) < (F9-F8),"Yes","No")
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Try this in H9:
=IF(ABS(G$5-F9)<ABS(G$5-F8),"yes","no")
Hope this helps.
Pete
![]()
Please Login or Register to view this content.
If someone has helped you then please add to their Reputation
Thank you so much. Pete and pjwhitfield worked in every trial.
Thanks for marking the thread as SOLVED.
You might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).
Pete
Thanks for the rep.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks