Blank cells in data

harryhornet

New Member
Joined
Feb 28, 2019
Messages
7
Hi All
I am using a If and statement to work out if performance has improved, declined or remained the same. I have used an if and statement as for some the data needs to be higher to be better and for others it needs to be lower to be better. I have included the formula that i am using
=IF((AND(D2="Lowest",F2<E2)),"Improve",IF((AND(D2="Lowest",F2>E2)),"Declined",IF((AND(D2="Lowest",F2=E2)),"No Change",IF((AND(D2="Highest",F2<E2)),"Declined",IF((AND(D2="Highest",F2>E2)),"Improve",IF((AND(D2="Highest",F2=E2)),"No Change",IF(F2=”<>”,"No Data",IF(E2=”<>”,”No Data”,”Else”))))))))

however there are some cells with no data. i tried adding in this
IF(F2=”<>”,"No Data",IF(E2=”<>”,”No Data”,
but it didn't work

any suggestions?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Code:
=IF(OR(F2="",E2=""),"No Data","")
 
Upvote 0
You can make the whole thing a lot shorter and easier to manage by reorganising it

Excel Formula:
=IF(COUNT(E2:F2)<2,"No Data",IF(E2=F2,"No Change",IF(OR(AND(F2>E2,D2="Lowest"),AND(F2<E2,D2="Highest")),"Declined","Improve")))
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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