Nested formula
I have a schedule sheet and a production sheet, I am trying to pull the pick up date from the schedule sheet to the production sheet based on an Order Number, which on the Schedule sheet can be surrounded by other information.
Schedule sheet:
Pick Up Date field is a date field.
Production sheet:
I have tried:
=IF(CONTAINS([number-order]@row, {WDC SHIPPINGSCHEDULE Order number/contents}),
"pudate", "false") but I don't know how to replace "pudate" with the actual date on the Schedule sheet.
Answers
-
You are thinking along the right lines with the CONTAINS @Pamela.Baron and have successfully matched on a partial string.
But the IF or nested IF is not going to get you what you need. You need an INDEX function to scan the list in your schedule sheet and return the row that meets the criteria. IF will not scan through the list - it is more of an absolute choice - IF true do this, if not do something else (you would need a lot of something else's to achieved what you want). INDEX is more efficient.
We can combine INDEX and COLLECT and CONTAINS like this.
=INDEX(COLLECT({WDC SHIPPINGSCHEDULE Pick Up Date}, {WDC SHIPPINGSCHEDULE Order number/contents}, CONTAINS([Number-Order]@row, @cell)), 1)
This COLLECTS the value in the column I have called "WDC SHIPPINGSCHEDULE Pick Up Date" (Pick Up Date in your Schedule sheet), where the Number/Contents column in that sheet (the reference you have already set up) CONTAINS the number-order of the row in the current sheet. It returns the 1st row that matches.
Hope that helps.
-
That returns #Invalid Column Value
-
Is the column that you want to pull the date into set up as Column Type Date?
-
OMG, I changed it and it worked-Thank you so much. You are my hero!
-
Can you change it? Right click, edit column properties, and then change it to Date
The format of the column of the schedule sheet needs to match that in the production sheet otherwise you will see the INVALID COLUMN VALUE error.
-
Our messages crossed! Enjoy your new formula 😀
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!