Help with IF formula using a date created by a formula

danhendo888

Board Regular
Joined
Jul 15, 2019
Messages
167
Office Version
  1. 365
Platform
  1. Windows

Book1
S
1PO 2 Pay Date
200-Jan-00
Burnard
Cell Formulas
RangeFormula
S2=LARGE(IF(Sheet2!L:L=P2,Sheet2!EE:EE),1)


So this formula is producing 00-Jan-00.
I wish to create a formula on top of it so that whenever it produces 00-Jan-00, I can just replace it with ""
Thus, creating a blank cell. Not sure how to do it.

Any ideas?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Why not add an else statement?

If statements are structured like this, IF(SomeThing=SomethingElse, THEN TRUE, ELSE FALSE). The way you have it set up there is only a true statement, which if I am reading it correctly, your code is producing a FALSE statement as 00 Jan 00.

Try this and see if it works:

Code:
=LARGE([COLOR=Blue]IF([COLOR=Red]Sheet2!L:L=P2,Sheet2!EE:EE[/COLOR][/COLOR][B][COLOR=#ff0000],""[/COLOR][/B][COLOR=Blue]),1[/COLOR])

The other option is an IF statement inside of an IF statement.
 
Last edited:
Upvote 0
Why not add an else statement?

If statements are structured like this, IF(SomeThing=SomethingElse, THEN TRUE, ELSE FALSE). The way you have it set up there is only a true statement, which if I am reading it correctly, your code is producing a FALSE statement as 00 Jan 00.

Try this and see if it works:

Code:
=LARGE([COLOR=blue]IF([COLOR=red]Sheet2!L:L=P2,Sheet2!EE:EE[/COLOR][/COLOR][B][COLOR=#ff0000],""[/COLOR][/B][COLOR=blue]),1[/COLOR])

The other option is an IF statement inside of an IF statement.



Hmm. I am still getting 00-Jan-00 which is weird because the column is only meant to have dates.
But if the cell is blank, then the formula just spits out 00-Jan-00.
 
Upvote 0
Hello,

How about finding "Large" first and applying "IF" function. I am sorry if i am wrong. Your IF function seems incomplete. Could you please provide some sample data.
 
Upvote 0
Hello,

How about finding "Large" first and applying "IF" function. I am sorry if i am wrong. Your IF function seems incomplete. Could you please provide some sample data.

Yes, you are right.
I tried it and it worked. But I also changed to AGGREGATE function.
My original formula was incorrect.
FWIW this is what I used:

=IF(AGGREGATE(14,6,$M$1:$M$20/(L1:L20=P2),1)=0,"",AGGREGATE(14,6,$M$1:$M$20/(L1:L20=P2),1))

L2: M1001
M2 1-July-19
P2: M1001
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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