Something like extension of Vlookup

gurpreet161

New Member
Joined
Jan 2, 2005
Messages
11
Hi, I need some precious help with the formula on how to do this.

Basically I have 2 spreadsheets. One with a number of items with their status in front of them. Then I have another spreadsheet with lesser number of items without any status. The items on the second spreadsheet may or may not be duplicate of the items on the first spreadsheet.

I have combined both the spreadsheets and here is how it looks:

A B Status on B
2 1 Done
5 2 Pending
6 3 Done
8 4 Pending
9 5 Being Done
10 6 Pending
7 Done
8 Done
9 Done
10 Pending


A column is taken from the second spreadsheet. B and Status on B is from the first spreadsheet.

Now, I want to mark the status on the items on the second spreadsheet (which is column A). Without manually doing it, I want to come up with a formula which tells me the status on items A. This is how the result will look:

A Status on A
2 Pending
5 Being Done
6 Pending
8 Done
9 Done
10 Pending

Can somebody help me with that?

Gurpreet
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
gurpreet161 said:
Hi, I need some precious help with the formula on how to do this.

Basically I have 2 spreadsheets. One with a number of items with their status in front of them. Then I have another spreadsheet with lesser number of items without any status. The items on the second spreadsheet may or may not be duplicate of the items on the first spreadsheet.

I have combined both the spreadsheets and here is how it looks:

A B Status on B
2 1 Done
5 2 Pending
6 3 Done
8 4 Pending
9 5 Being Done
10 6 Pending
7 Done
8 Done
9 Done
10 Pending


A column is taken from the second spreadsheet. B and Status on B is from the first spreadsheet.

Now, I want to mark the status on the items on the second spreadsheet (which is column A). Without manually doing it, I want to come up with a formula which tells me the status on items A. This is how the result will look:

A Status on A
2 Pending
5 Being Done
6 Pending
8 Done
9 Done
10 Pending

Can somebody help me with that?

Gurpreet

If numbers are in ascending order...

In B2 on Sheet2 enter & copy down:

=IF(LOOKUP(A2,Sheet1!$B$2:$B$11)=A2,LOOKUP(A2,Sheet1!$B$2:$B$11,Sheet1!$C$2:$C$11),"Not Found")

Otherwise:

=IF(ISNUMBER(MATCH(A2,Sheet1!$B$2:$B$11,0)),INDEX(Sheet1!$C$2:$C$11,MATCH(A2,Sheet1!$B$2:$B$11,0)),"Not Found")
 
Upvote 0
It seems that all you need is this.

=Vlookup(A1,$B$1:$C$100,2,false),

If B1:C100 is another sheet, then use something like

=Vlookup(A1,Sheet2!$B$1:$C$100,2,false)

and adjust ranges to suit.
 
Upvote 0

Forum statistics

Threads
1,203,326
Messages
6,054,748
Members
444,748
Latest member
knowak87

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top