need additional criteria added to cell formula.

steve400243

Active Member
Joined
Sep 15, 2016
Messages
429
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello, I use this cell formula to return the data to cell A3 - "Received or Shipped" I also need ""Order" to populate if a date is entered into cell G3. and "Storage" to Populate if M3 >2. Changing each time new dates are entered in to cells D3, G3, and F3 and when cell M3 is greater than 2.

Hope that makes sense? Please let me know if you need additional information. Thank you for your time.

VBA Code:
=IF(D3="","",IF(F3="","Received","Shipped"))
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
What is the order of when dates will be entered into each of the cells? Can you post a sample of your date using the XL2BB tool?
 
Upvote 0
The order would be "Received" 1st, then "Order"2nd, "Storage" 3rd, and the last one would be "Shipped" Sorry but I cant post a sample using the XL2BB tool from my work Computer.
 
Upvote 0
thumbnail_IMG_0257.jpg
 
Upvote 0
Report Date8/3/20212 free days
StatusON HAND# INTRK #Received DateOn Hand # OutShipped DateOrder DateLOCATIONSHIPPERPIECESP.O #COMPLETEDays at FTNDays of Storagecycle count
Received1231238/3/20210#NAME?
44412#NAME?
44412#NAME?
44412#NAME?
44412#NAME?
 
Upvote 0
Copy of chicago Report1.xlsm
ABCDEFGHIJKLMNO
1Report Date8/3/20212 free days
2StatusON HAND# INTRK #Received DateOn Hand # OutShipped DateOrder DateLOCATIONSHIPPERPIECESP.O #COMPLETEDays at FTNDays of Storagecycle count
3Received1231238/3/20210#NAME?
4 44412#NAME?
5 44412#NAME?
6 44412#NAME?
7 44412#NAME?
8
9
On Hand
Cell Formulas
RangeFormula
B1B1=NOW()
M3:M7M3=IF(ISBLANK(F3),$B$1-D3,F3-D3)
N3:N4N3=_xlfn.IFS(M3<2,0,A3="shipped",F3-D3-2,A3="storage",$B$1-D3-2)
N5:N7N5=_xlfn.IFS(M5<2,0,A5="shipped",F5-D5-2,A5="storage",B3-D5-2)
A3:A7A3=IF(D3="","",IF(F3="","Received","Shipped"))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I think this is what you are looking for in A3

=IFS(D3="","",M3>2,"Storage",AND(F3="",G3=""),"Received",F3<>"","Shipped",G3<>"","Order")

mir994stan 20210803.xlsm
ABCDEFGHIJKLMNO
1Report Date8/3/2021 22:222 free days
2StatusON HAND# INTRK #Received DateOn Hand # OutShipped DateOrder DateLOCATIONSHIPPERPIECESP.O #COMPLETEDays at FTNDays of Storagecycle count
3Order1231238/3/20218/4/20210.35215970
4Storage1231238/3/20218/6/20218/3/20213-1.06737731
Sheet4
Cell Formulas
RangeFormula
B1B1=NOW()
M3:M4M3=IF(ISBLANK(F3),$B$1-D3,F3-D3)
N3:N4N3=IFS(M3<2,0,A3="shipped",F3-D3-2,A3="storage",$B$1-D3-2)
A3:A4A3=IFS(D3="","",M3>2,"Storage",AND(F3="",G3=""),"Received",F3<>"","Shipped",G3<>"","Order")
 
Upvote 0

Forum statistics

Threads
1,213,501
Messages
6,114,010
Members
448,543
Latest member
MartinLarkin

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