Formula based on criteria..

Chaturvedi, Santosh 240 Reputation points
2026-06-25T14:02:49.12+00:00

Hello I have one conditions

I have values in column W & X,

They needed to be coompare these values with each other based on criteria as shown in boxes

Once it fulfilles the criteria the coumun y must say Feild, Feild II, Fiel II or Field IV see in red fonts.

Please hlep

User's image

Microsoft 365 and Office | Excel | For business | Other
0 comments No comments

Answer accepted by question author

Gabriel-N 20,305 Reputation points Microsoft External Staff Moderator
2026-06-25T14:31:12.4+00:00

Hello @Chaturvedi, Santosh

If you're using Excel M365, please paste this formular to Y4 =IF(OR(ISBLANK(W4), ISBLANK(X4)), "", IFS(X4 < -W4, "Field I", AND(X4 >= -W4, X4 <= W4), "Field II", AND(X4 > W4, X4 <= 3*W4), "Field III", X4 > 3*W4, "Field IV"))The IFS function is the cleanest way to map the specific criteria boxes from the screenshot.

If you're using older versions of Excel, a standard nested IF statement evaluates the conditions in sequential order: =IF(OR(ISBLANK(W4), ISBLANK(X4)), "", IF(X4 < -W4, "Field I", IF(X4 <= W4, "Field II", IF(X4 <= 3*W4, "Field III", "Field IV"))))

User's image

Hope this helps.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.