need nested if formula

AFZAL SOHAIL

Board Regular
Joined
May 31, 2023
Messages
156
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Hello the team:-
I need a nested if formula as shown in the below:-
Thanks in advance please.

SR.NO.DATEDAYTIME INTIME OUTstatus
101-06-24SATURDAY9.5617.51of
202-06-24SUNDAYoff
303-06-24MONDAY10.3917.52late
404-06-24TUESDAY9.5417.55ok
505-06-24WEDNESDAY10.3917.56late
606-06-24THURSDAY9.5618.02ok
707-06-24FRIDAYGREENgreen
808-06-24SATURDAY9.5517.59ok
I need if formula is as​
1.col-D if smaller than or equal to 10.00 then in status col it is ok​
2.col-D if greater than 10.0 then in status col it is late​
3.if col-D is blank then status is off​
4.if col-d is written green than in status col it is green​
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Put this formula on row 2 and copy down:
Excel Formula:
=IF(D2="","off",IF(D2="GREEN","green",IF(D2<=10,"ok",IF(D2>10,"late",""))))

By the way, based on your description, I think row 2 in your example should be showing "ok", not "of".
 
Upvote 0
Solution
Put this formula on row 2 and copy down:
Excel Formula:
=IF(D2="","off",IF(D2="GREEN","green",IF(D2<=10,"ok",IF(D2>10,"late",""))))

By the way, based on your description, I think row 2 in your example should be showing "ok", not "of".
Thanks a lot Sir, it is working very well , I am sorry for row 2 mistake it is actually "ok" not "of"
 
Upvote 0
You are welcome.
Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top