IF Statement

cmorales66

New Member
Joined
Mar 5, 2012
Messages
7
Hi everyone. I know I may be missing a rookie link here, I'm just burned out at this point. Help.

I'd like to name my Processed Count column based on the Completed Column. If there is no date in Completed, then the Days are assumed Open: Open 7 Days or Less, Open 8-14 Days, etc. If there's a date on Completed, then Days are assumed processed: Processed in 7 Days or Less, Processed in 8-14 Days, etc. I have the formula below and it works with the Completed column empty but if there's a value, it returns FALSE. I'm missing that end piece to make it work. Any help is appreciated.

My current formula: =IF([@Completed]="",IF([@Days]<=7,"Open 7 Days or Less",IF([@Days]<=14,"Open 8-14 Days",IF([@Days]<=21,"Open 15-21 Days",IF([@Days]>21,"Open over 21 Days",IF([@Completed]<>"",IF([@Days]<=7,"Processed in 7 Days or Less",IF([@Days]<=14,"Processed in 8-14 Days",IF([@Days]<=21,"Processed in 15-21 Days",IF([@Days]>21,"Processed in over 21"))))))))))

Excel Help.PNG
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi cmorales66,

It works like this:

Book1
ABC
1CompletedDaysProcessed Count
27Open 7 Days or Less
309.01.202035Processed in over 21 Days
4OpenOpen over 21 Days
505.12.20199Processed in 8 - 14 Days
629.11.20198Processed in 8 - 14 Days
721.12.201930Processed in over 21 Days
Tabelle1
Cell Formulas
RangeFormula
C2:C7C2=IF([@Completed]="",IF([@Days]<=7,"Open 7 Days or Less",IF([@Days]<=14,"Open 8 - 14 Days",IF([@Days]<=21,"Open 14 to 21 Days","Open over 21 Days"))),IF([@Days]<=7,"Processed in 7 Days or Less",IF([@Days]<=14,"Processed in 8 - 14 Days",IF([@Days]<=21,"Processed in 14 to 21 Days","Processed in over 21 Days"))))


You have two If-Formulas nested in the outer formula, but the inner two should not be nested into each other, because the first one is the True-Statement of the outer If-Formula, the other is the False-Statement.

Regards,
Elaszat
 
Upvote 0
Upvote 0
Hi cmorales66,

It works like this:

Book1
ABC
1CompletedDaysProcessed Count
27Open 7 Days or Less
309.01.202035Processed in over 21 Days
4OpenOpen over 21 Days
505.12.20199Processed in 8 - 14 Days
629.11.20198Processed in 8 - 14 Days
721.12.201930Processed in over 21 Days
Tabelle1
Cell Formulas
RangeFormula
C2:C7C2=IF([@Completed]="",IF([@Days]<=7,"Open 7 Days or Less",IF([@Days]<=14,"Open 8 - 14 Days",IF([@Days]<=21,"Open 14 to 21 Days","Open over 21 Days"))),IF([@Days]<=7,"Processed in 7 Days or Less",IF([@Days]<=14,"Processed in 8 - 14 Days",IF([@Days]<=21,"Processed in 14 to 21 Days","Processed in over 21 Days"))))


You have two If-Formulas nested in the outer formula, but the inner two should not be nested into each other, because the first one is the True-Statement of the outer If-Formula, the other is the False-Statement.

Regards,
Elaszat
Thank you for this! I was getting overwhelmed with the statements. This is a very good solution to keep in mind when using two nested formulas but one in the outside. Thank you again for your help.
 
Upvote 0
Hi, just another option that you can try.

Book1
ABC
1CompletedDaysProcessed Count
27Open 7 Days or less
309.01.202035Processed over 21 Days
415Open 15-21 Days
505.12.201921Processed 15-21 Days
629.11.20198Processed 8-14 Days
721.12.201930Processed over 21 Days
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=IF([@Completed]="","Open ","Processed ")&LOOKUP([@Days],{0,8,15,22},{"7 Days or less","8-14 Days","15-21 Days","over 21 Days"})
This is like a German car of a reply, efficient, elegant and it works! Thank you for your help, this is a very clean solution.
 
Upvote 0
Thank you for this! I was getting overwhelmed with the statements. This is a very good solution to keep in mind when using two nested formulas but one in the outside. Thank you again for your help.

You're welcome and thanks for the feedback! :)
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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