IF cell is Blank
Hi
I have formula here:
IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status}; {Truck Dispatches (Ongoing Jobs)_Truck}; [Truck reg. number]@row); UNICHAR(10)); 1)
This formula looks at the sheet {Truck Dispatches (Ongoing Jobs)_Status} and returns the Status, by comparing the Truck reg. number from two sheets.
There are 6 sheets {Truck Dispatches (Ongoing Jobs)_Status} & {Truck Dispatches (Ongoing Jobs)_Status1} & {Truck Dispatches (Ongoing Jobs)_Status2} & {Truck Dispatches (Ongoing Jobs)_Status3} & {Truck Dispatches (Ongoing Jobs)_Status4} & {Truck Dispatches (Ongoing Jobs)_Status5}
Now i want the formula to check if the cell is blank, if true to look at all sheets and return status, each sheet has unique Truck reg. number that can't be duplicated in other sheets.
Now I have created the following formula but it only looks at the 1st sheet and ignores the other:
IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status}; {Truck Dispatches (Ongoing Jobs)_Truck}; [Truck reg. number]@row); UNICHAR(10)); 1); IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status1}; {Truck Dispatches (Ongoing Jobs)_Truck1}; [Truck reg. number]@row); UNICHAR(10)); 1); IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status2}; {Truck Dispatches (Ongoing Jobs)_Truck2}; [Truck reg. number]@row); UNICHAR(10)); 1); IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status3}; {Truck Dispatches (Ongoing Jobs)_Truck3}; [Truck reg. number]@row); UNICHAR(10)); 1); IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status4}; {Truck Dispatches (Ongoing Jobs)_Truck4}; [Truck reg. number]@row); UNICHAR(10)); 1); IFERROR(INDEX(JOIN(COLLECT({Truck Dispatches (Ongoing Jobs)_Status5}; {Truck Dispatches (Ongoing Jobs)_Truck5}; [Truck reg. number]@row); UNICHAR(10)); 1); ""))))))
Please advise
Answers
-
Hi Paul, Can you advise, need your help again
-
@Morena Would creating 6 helper columns on your sheet help? Primarily, to index/match the status of each vehicle from the 6 separate sheets. Then you can just refer to those 6 columns in an easy peasy formula. 😅 Also, if you don't want to see them, you can just hide them, or create a report. Just food for thought.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!