Three (or more) arguments/one cell

LizzieW71

New Member
Joined
Mar 3, 2017
Messages
5
I want t enter three arguments into one cell:
1. Calculate total days overdue
2. Mark "Received" if date in received column
3. Leave blank if not overdue

So far, I have =IF(G3>1,"RECEIVED",DAYS360(F3,TODAY())) and I get arguments 1 and 2, but I can't figure out how to add argument 3. I've tried the following but they all fail:

=IF(G3>1,"RECEIVED",DAYS360(F3,TODAY())<1,””,DAYS360(F3,TODAY()))

=IF(G3>1,"RECEIVED"),IF(F3,TODAY())<1,””,DAYS360(F3,TODAY()))

Any help would be greatly appreciated.

Liz
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You seem to be in the right track. If you are looking for these results:

Excel 2016 (Windows) 64 bit
F
G
H
2
DueDate
Received
Status
3
2017 - feb - 28​
3​
4
2017 - mar - 01​
2017 - mar - 02​
Received​
5
2017 - mar - 02​
1​
6
2017 - mar - 03​
2017 - mar - 02​
Received​
7
2017 - mar - 04​

<tbody>
</tbody>

The following formula in column H will do:

CellFormula
H3=IF( G3 > 0, "Received", IF( F3 >= TODAY(), "", TODAY() - F3 ) )

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

The IF() function accepts 3 arguments; the logical condition, the result if TRUE and the result if FALSE. In your case you want to test 2 logical conditions and return 3 different results, forcing you to nest one IF() inside another. This is very common and you usually test the condition that can override any other condition first, eg. if the received date has been entered you don't care if it was received early, just in time or late, you just want to know its there. If this condition is not met, you go into a seconf IF() function placed as the result if FALSE argument of the first IF().

I think my explanation in not very clear, but I hope it helps.

*Note: If you are using Excel 2016 with an Office 365 subscription, you can use the new IFS() function.
 
Upvote 0
IF conditions contain 3 paramaters:
a condition
a result if TRUE
a result if FALSE

=IF(G3>1,"RECEIVED",DAYS360(F3,TODAY())<1,””,DAYS360(F3,TODAY()))
This contains 5 parameters

=IF(G3>1,"RECEIVED"),IF(F3,TODAY())<1,””,DAYS360(F3,TODAY()))
This second one's a complete mess. There is no FALSE value IF G3 is not > 1, the second IF is saying F3=TRUE else IF TODAY()<1 is TRUE

You should explain in words what you're trying to achieve covering all possibliities and leave the IFs to whoever will reply.
 
Last edited:
Upvote 0
Try this.
=IF(G3>1,"RECEIVED",IF(DAYS360(F3,TODAY())<0,"",DAYS360(F3,TODAY())))
 
Upvote 0
Try this.
=IF(G3>1,"RECEIVED",IF(DAYS360(F3,TODAY())<0,"",DAYS360(F3,TODAY())))[/QUO

Thank you all! Those worked. I have updated my spreadsheet with the right formula. These help me keep track and monitor trends.
I have a question about conditional formatting now:
Within this same spreadsheet, I have a “Status” Column with two conditions.
1. Today’s date minus due date
2. Red/Yellow/Green stop lights to indicate how close to being due or being overdue.

I want the formula to stop counting once I receive the item and, maybe, turn the icon back to green.
There is also a 4-icon set that maybe I need to use to indicate a 4th status for received. Any suggestions?
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,841
Members
449,193
Latest member
MikeVol

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