lamensterms
New Member
- Joined
- Apr 19, 2016
- Messages
- 17
- Office Version
- 365
- Platform
- Windows
Hey guys,
I'm trying to search a value in multiple columns, and return a STRING if this value is found. The STRING depends on which column the value is found in.
I have 2 work sheets:
Sheet 1 = 'Items'
Sheet 2 = 'Location
On sheet 'Items', I have a list of values in Columns A. Some of these values are also listed on my second sheet 'Location', in columns A, B or C (not all values from 'Items' will be listed in 'Locations's columns), and some values will be listed in multiple columns on Sheet 2).
On Sheet 1 'Items', I would like Column B to search Sheet 2, and display a STRING/TEXT if the value is found. But the locations have a hierarchy. I wish to display the highest 'priority' Location that each Item is found in. Column C is the highest priority.
Sorry for the sloppy description, hopefully someone knows what I am trying to do.
I have experimented with nested IF and MATCH functions.
=IFERROR(IF(MATCH(A1,Location!C:C,0),"Installed"),IF(MATCH(A1,Location!B:B,0),"Delivered"),IF(MATCH(A1,Location!A:A,0),"Factory"),"")
...but I seem to be making an error somewhere (probably a simple syntax error).
Thanks for any help
I'm trying to search a value in multiple columns, and return a STRING if this value is found. The STRING depends on which column the value is found in.
I have 2 work sheets:
Sheet 1 = 'Items'
Sheet 2 = 'Location
On sheet 'Items', I have a list of values in Columns A. Some of these values are also listed on my second sheet 'Location', in columns A, B or C (not all values from 'Items' will be listed in 'Locations's columns), and some values will be listed in multiple columns on Sheet 2).
On Sheet 1 'Items', I would like Column B to search Sheet 2, and display a STRING/TEXT if the value is found. But the locations have a hierarchy. I wish to display the highest 'priority' Location that each Item is found in. Column C is the highest priority.
Sorry for the sloppy description, hopefully someone knows what I am trying to do.
I have experimented with nested IF and MATCH functions.
=IFERROR(IF(MATCH(A1,Location!C:C,0),"Installed"),IF(MATCH(A1,Location!B:B,0),"Delivered"),IF(MATCH(A1,Location!A:A,0),"Factory"),"")
...but I seem to be making an error somewhere (probably a simple syntax error).
Thanks for any help