Status column with multiple variables

Kellie220

New Member
Joined
Jan 23, 2024
Messages
31
Office Version
  1. 365
Platform
  1. Windows
HI All!!! I have an excel question. My spreadsheet has about 85 columns and about 6000 rows.

My Column "P" is my status column. It is based on 5 different columns. So far I just manually enter in the status but was hoping I could get a formula for the status.

Column "S" if this has a date then my status column "P" would state "ACTIVE"
Column "BK" if this has a date then my status column "P" would state "COMPLETE"
Column "CE" if this has a date then my status column "P" would state "FAOC"
Column "CK" if this has a date then my status column "P" would state "HOLD"
Column "CL" if this has a date then my status column "P" would state "RETURNED"

The tricky part is that there could be dates in each of the columns, S, BK, CE, and CK or CL. These date are the evolution of the assignment with the exclusion of CK & CL as that means the assignment has issues.

The assignment goes from Active, to Complete to FAOC (when acctg purges it off our system). Really 3 dates if no issues. Is there a formula that I can enter with these variables so I do not always have to update the Status column P? Thank you so much!!!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Here's one solution
=IFS(ISCELLDATE(CL3),"RETURNED",ISCELLDATE(CK3),"HOLD",ISCELLDATE(CE3),"FAOC",ISCELLDATE(BK3),"COMPLETE",ISCELLDATE(S3),"ACTIVE")

The order in which you place those in the formula determines which result you get. You'll have to add this UDF to a standard module in VBA

VBA Code:
Function ISCELLDATE(Cel As Range) As Boolean
  ISCELLDATE = ISDATE(Cel)
End Function
 
Upvote 0
Try this.

Mappe33
CM
5RETURNED
Tabelle1
Cell Formulas
RangeFormula
CM5CM5=IFS(CL5<>"","RETURNED",CK5<>"","HOLD",CE5<>"","FAOC",BK5<>"","COMPLETE",S5<>"","ACTIVE")
 
Upvote 0
Here's one solution
=IFS(ISCELLDATE(CL3),"RETURNED",ISCELLDATE(CK3),"HOLD",ISCELLDATE(CE3),"FAOC",ISCELLDATE(BK3),"COMPLETE",ISCELLDATE(S3),"ACTIVE")

The order in which you place those in the formula determines which result you get. You'll have to add this UDF to a standard module in VBA

VBA Code:
Function ISCELLDATE(Cel As Range) As Boolean
  ISCELLDATE = ISDATE(Cel)
End Function
Hi there :) thank you for the response. I tried it, I am not sure what I am doing wrong, but it either gives me #NA or "Returned". When we start the process, the status is "ACTIVE" right away. My Data starts on Row 11. I do have other VBA script in this workbook. I am not sure if that is interfering with the process.
 
Upvote 0
Try this.

Mappe33
CM
5RETURNED
Tabelle1
Cell Formulas
RangeFormula
CM5CM5=IFS(CL5<>"","RETURNED",CK5<>"","HOLD",CE5<>"","FAOC",BK5<>"","COMPLETE",S5<>"","ACTIVE")
Hi :) thank you for the response. This is not working for me. I am not sure what the issue is. My work starts on Row 11, and when I input what you suggested it gives me "returned" on all. That is my column CL and typically out of about 6000 we have maybe 100. The column never gets a date normally.
 
Upvote 0
Hi there :) thank you for the response. I tried it, I am not sure what I am doing wrong, but it either gives me #NA or "Returned". When we start the process, the status is "ACTIVE" right away. My Data starts on Row 11. I do have other VBA script in this workbook. I am not sure if that is interfering with the process.
Maybe it could be that of those 5 cells mentioned above, not all will have a date. Some never get a date. Column S, BK, and CE will get dates but eventually, over time. Column S will always have a date, then progress to the other 2 columns. So those columns will be blank in the beginning.
 
Upvote 0
Please show some sample data and expected results with XL2BB.
Mappe33
STBKBLCECFCKCLCM
504.04.2024ACTIVE
604.04.202410.05.2024FAOC
704.04.202410.05.202412.05.2024HOLD
Tabelle1
Cell Formulas
RangeFormula
CM5:CM7CM5=IFS(CL5<>"","RETURNED",CK5<>"","HOLD",CE5<>"","FAOC",BK5<>"","COMPLETE",S5<>"","ACTIVE")
 
Upvote 0
1712068121887.png
 
Upvote 0
There is SOMETHING in columns BK, CE, CK, Cl.
See the difference in my spreadsheet. The cells in rows 10:13 are really empty. The cells in rows 16.20 contain a space.
Mappe33
STBKBLCECFCKCLCM
1008.11.2023ACTIVE
1115.03.202402.04.2024FAOC
1215.03.202402.04.2024HOLD
1315.03.202402.04.2024RETURNED
14
15
1608.11.2023 RETURNED
1715.03.2024 02.04.2024 RETURNED
1815.03.2024 02.04.2024 RETURNED
1915.03.2024 02.04.2024RETURNED
Tabelle1
Cell Formulas
RangeFormula
CM10:CM13,CM16:CM19CM10=IFS(CL10<>"","RETURNED",CK10<>"","HOLD",CE10<>"","FAOC",BK10<>"","COMPLETE",S10<>"","ACTIVE")
 
Upvote 0
Please show some sample data and expected results with XL2BB.
Mappe33
STBKBLCECFCKCLCM
504.04.2024ACTIVE
604.04.202410.05.2024FAOC
704.04.202410.05.202412.05.2024HOLD
Tabelle1
Cell Formulas
RangeFormula
CM5:CM7CM5=IFS(CL5<>"","RETURNED",CK5<>"","HOLD",CE5<>"","FAOC",BK5<>"","COMPLETE",S5<>"","ACTIVE")
Hi Good Morning :) Please see my screenshot below. I entered a few dates but nothing changed.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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