Need a formula

Yolandi

New Member
Joined
May 26, 2016
Messages
34
Good day,
I have a spread sheet that consists of two sheets, sheet one has my sales agent in colum A and dealer codes from B-L, sheet two has die dealer code in colum A, dealer name in colum B and in Colum C I need to find the correct sales agent from sheet one for the specific dealer

Please help
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Excel 2010
AB
1sales agentdealer code
2bob1
3rick2
4glave3
5beth96
6ann67
7mike4
Sheet1



Excel 2010
ABC
1dealer codedealer namesales agent
267Aann
396Bbeth
43Cglave
52Drick
61Ebob
73Fglave
84Gmike
Sheet2
Cell Formulas
RangeFormula
C2=INDEX(Sheet1!$A$2:$A$7,MATCH(A2,Sheet1!$B$2:$B$7,0))
C3=INDEX(Sheet1!$A$2:$A$7,MATCH(A3,Sheet1!$B$2:$B$7,0))
C4=INDEX(Sheet1!$A$2:$A$7,MATCH(A4,Sheet1!$B$2:$B$7,0))
C5=INDEX(Sheet1!$A$2:$A$7,MATCH(A5,Sheet1!$B$2:$B$7,0))
C6=INDEX(Sheet1!$A$2:$A$7,MATCH(A6,Sheet1!$B$2:$B$7,0))
C7=INDEX(Sheet1!$A$2:$A$7,MATCH(A7,Sheet1!$B$2:$B$7,0))
C8=INDEX(Sheet1!$A$2:$A$7,MATCH(A8,Sheet1!$B$2:$B$7,0))
 
Upvote 0
Hi Scot T, soI tried tour formula but it doesnt work, I need to search the dealer code on sheet two to match sheet one and give me the sales agent name. Please refer to my query above to see which sheet has what info
 
Upvote 0
Can you post a sample of your data. The formula I posted returns the agent name based on the dealer code.
 
Upvote 0
You should post a small sample here. You can change the data if need so as not to post any thing that should not be posted on the formula.
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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