IF THEN using multiple sheets and multiple columns
I am looking for a formula that brings over data from a column only if there is a date in another column.
=IFERROR({Dallas Tracker NEW Start Date} > 1, (IFERROR(INDEX({Dallas Tracker NEW Mileage}, MATCH([SEGMENT ID]525, {Dallas Tracker SEGMENT ID}, 0)), "")))
So basically if there is a start date in a specific column, I want to know what the mileage is in a different column. My problem with this formula is that it pulls over mileage from other columns that share the same SEGMENT ID if that data was listed first.
I know the first part of my formula has to be wrong. I just don't know where to begin with this one.
Answers
-
You would use an INDEX/MATCH on the date column to look at the cell that should contain the date.
INDEX({Dallas Tracker NEW Date}, MATCH([SEGMENT ID]525, {Dallas Tracker SEGMENT ID}, 0))
Then you would drop that into an ISDATE function as the criteria for an IF statement that says IF that IS a DATE, run this other INDEX/MATCH.
=IF(ISDATE(INDEX({Dallas Tracker NEW Date}, MATCH([SEGMENT ID]525, {Dallas Tracker SEGMENT ID}, 0))), IFERROR(INDEX({Dallas Tracker NEW Mileage}, MATCH([SEGMENT ID]525, {Dallas Tracker SEGMENT ID}, 0)), ""))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!