Help with Nested If Statement

jstarr

New Member
Joined
Dec 1, 2014
Messages
20
I'm trying to come up with an IF statement with 3 criteria. Looking for the boards help.

The table is pulling data from another worksheet on the spreadsheet.

1. IF Column J is not blank=Yes
2. If Column J is blank=No
3. If Column J is 0=Not yet

I came up with this formula, but the columns that should be returning Not yet, are returning yes.

=IF([Column J]<>"","Yes",IF([Column J]="","No",IF([Column J]=0,"Not Yet")))

Thanks!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi Jstarr, the reason it is returning yes instead of not yet is because the presence of a 0 in column J means the column is not blank as per <>""
 
Upvote 0
Try this:

=IF(AND(J:J<>"",J:J<>0),"Yes",IF(AND(J:J=0,J:J<>""),"Not Yet","No"))

J:J can be replaced with your named range
 
Upvote 0
Thanks so much. Is there a way for me to run a pivot table from this dataset that only counts the "Yes" values? I'm trying to count what percent of clients we retain.
 
Upvote 0
You're welcome. Feel free to hit the Like button on my previous post to show it was the right answer.

With regards to your second query, do you have some example data we can look at? That would help immensely to visualise your data set and allow us to try and help you further. If you google MrExcel HTML Maker you will be able to copy / paste a snippet of your workbook directly from Excel straight onto the forums.
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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