VLookup returning values from a different row
I'm stumped on this one. I'm running the following formula:
=VLOOKUP("In Progress", [Phase - Task]:[Phase Status], 1)
1st column in the table is Phase - Task. VLookup finds the value "In Progress" on row 6 in the Phase status column, but then returns the value from Phase - Task from row 4. I've never seen VLookup pull data from a different row than where it found the search value.
Can anyone spot a reason why this is happening, and a potential fix? Thank you!
Best Answer
-
You can use an INDEDX MATCH combo.
This would let you put columns wherever you want.
=INDEX([Phase - Task]:[Phase - Task],MATCH("In Progress",[Phase Status]:[Phase Status],0))
Answers
-
Not sure what you are trying to accomplish, but the way your formula is written the only possible value it can return is "In Progress".
It is looking for "In Progress" in the [Phase - Task] column and returning the value from that row in the [Phase - Task] column (which would automatically be "In Progress")
-
Oh, do I just need to reorder the range? I put the range in order that the columns appear on the sheet. When I move the Phase Status column to the left of the Phase - Task column, it returns properly. Still don't know what would cause it to return a value on a different row
-
reordering the range didn't work sadly. What I'm trying to accomplish is have the Phase - Task name appear in my sheet summary when it is "In Progress" at the Phase Status column
-
To accomplish this:
- Your columns should first be status then task.
- Your formula should be: =VLOOKUP("In Progress", [Phase Status]:[Phase - Task], 2)
-
It's a bummer that they have to be in that order, I'm assuming to keep the order that exists in my current design, I'd have to do something more complicated?
-
You can use an INDEDX MATCH combo.
This would let you put columns wherever you want.
=INDEX([Phase - Task]:[Phase - Task],MATCH("In Progress",[Phase Status]:[Phase Status],0))
-
OK I'll give that a shot, thank you! Can you help me understand what that index - match combo would look like if I wanted to return multiple values when more than one line shows In Progress?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!