Showcasing data from another sheet with negating criteria
I have built a formula that works! (Kinda) I just want to make it better
I am utilizing a reference sheet to see who is Incoming for a staffing situation. I ONLY want to see references to status labeled; "Confirmed", "Accepted", "Offered", "Pending", and "TBA" in that order (Confirmed as highest priority). Some references read "Cancelled", "Rejected", "Onboard" and I do not want these to be seen but some are sneaking through.
Columns "Inc. Crew Lvl" thru "Status coming" are all pulled utilizing formulas from another sheet
Currently the first reference point I am making is the "Inc. Crew Name" column using this formula
=IFERROR(INDEX(COLLECT({Ref Sheet: TMS Range 3}, {Ref Sheet: TMS Range 1}, MID@row, {Ref Sheet: TMS Range 4}, "Confirmed"), 1), IFERROR(INDEX(COLLECT({Ref Sheet: TMS Range 3}, {Ref Sheet: TMS Range 1}, MID@row, {Ref Sheet: TMS Range 4}, "Offered"), 1), IFERROR(INDEX(COLLECT({Ref Sheet: TMS Range 3}, {Ref Sheet: TMS Range 1}, MID@row, {Ref Sheet: TMS Range 4}, "Pending"), 1), "TBA")))
I then use the "Inc. Crew Name" as a reference point for the rest of the columns, with this it is pulling up reference points for "Status coming" being "Onboard" which I do not want.
How can I rectify this? Is there a way to put and Except into a formula?
Answers
-
Yes, you can use NOT() to negate function/formula. Hope that helps!
-
Where in the formula would you put the NOT()
Original
=IFERROR(INDEX(COLLECT({Ref Sheet: Name}, {Ref Sheet: MID}, MID@row, {Ref Sheet: STATUS}, "Confirmed"), 1), IFERROR(INDEX(COLLECT({Ref Sheet: Name}, {Ref Sheet: MID}, MID@row, {Ref Sheet: STATUS}, "Offered"), 1), IFERROR(INDEX(COLLECT({Ref Sheet: Name}, {Ref Sheet: MID}, MID@row, {Ref Sheet: STATUS}, "Pending"), 1), "TBA")))
Updated with NOT()
=IFERROR(INDEX(COLLECT({Ref Sheet: TMS Range 3}, {Ref Sheet: TMS Range 1}, MID@row, {Ref Sheet: TMS Range 4}, "Confirmed"), 1), IFERROR(INDEX(COLLECT({Ref Sheet: TMS Range 3}, {Ref Sheet: TMS Range 1}, MID@row, {Ref Sheet: TMS Range 4}, "Offered"), 1), IFERROR(INDEX(COLLECT({Ref Sheet: TMS Range 3}, {Ref Sheet: TMS Range 1}, MID@row, {Ref Sheet: TMS Range 4}, "Pending"), NOT({Ref Sheet: Status} = "Onboard"), 1), "TBA")))
it is still showing some Onboard however,
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!