Index match formula
=INDEX({MASTER - Customer Invoice Log - Status}, MATCH({MASTER - Customer Invoice Log Profit Center}, [Profit Center]@row, {MASTER - Customer Invoice Log Inv Year}, [Invoice YEAR]@row, {MASTER - Customer Invoice Log Inv Month}, [Invoice MONTH]@row, 0))
Can someone tell what Im doing wrong. The column im trying to match is a dropdown column
Best Answer
-
MATCH(search_value, range, [search_type])
Samuel — the Match function is incorrect in your example.
Two main issues
- You have your Search Value and Search Range flipped.
- You are trying to match on multiple conditions.
Search Value/Range Flipped
You have
MATCH({MASTER - Customer Invoice Log Profit Center}, [Profit Center]@row
It should be
MATCH([Profit Center]@row,{MASTER - Customer Invoice Log Profit Center}
[Profit Center]@row
= The Search Value{MASTER - Customer Invoice Log Profit Center}
= The Search RangeYou are trying to match on multiple conditions.
As far as I know you cannot match on multiple conditions.
What you would need to do is create a MatchingID Column that combines the three fields you are trying to match.
In your Customer Invoice Log create a new column that Combines Profit Center, Invoice Year, and Invoice Month.
Then in your sheet where you are using this match you would use a formula like….
INDEX({MASTER - Customer Invoice Log - Status},
MATCH([Profit Center]@row+":"+[Invoice YEAR]@row+":"+[Invoice MONTH]@row,{MASTER - Customer Invoice Log Combined},0),1)
This assumes that your combined column in your Master Invoice Log uses ":" as a delimiter.
Hope this helps
Answers
-
Im getting #Incorrect Arguement Set
-
MATCH(search_value, range, [search_type])
Samuel — the Match function is incorrect in your example.
Two main issues
- You have your Search Value and Search Range flipped.
- You are trying to match on multiple conditions.
Search Value/Range Flipped
You have
MATCH({MASTER - Customer Invoice Log Profit Center}, [Profit Center]@row
It should be
MATCH([Profit Center]@row,{MASTER - Customer Invoice Log Profit Center}
[Profit Center]@row
= The Search Value{MASTER - Customer Invoice Log Profit Center}
= The Search RangeYou are trying to match on multiple conditions.
As far as I know you cannot match on multiple conditions.
What you would need to do is create a MatchingID Column that combines the three fields you are trying to match.
In your Customer Invoice Log create a new column that Combines Profit Center, Invoice Year, and Invoice Month.
Then in your sheet where you are using this match you would use a formula like….
INDEX({MASTER - Customer Invoice Log - Status},
MATCH([Profit Center]@row+":"+[Invoice YEAR]@row+":"+[Invoice MONTH]@row,{MASTER - Customer Invoice Log Combined},0),1)
This assumes that your combined column in your Master Invoice Log uses ":" as a delimiter.
Hope this helps
-
What if I have a no match? How do I get it to say something else?
-
Wrap your Formula in IFERROR.
=IFERROR(<Index/Match Formula Here>,"Error Message")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 214 Industry Talk
- 454 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 456 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!