Using IF and VLOOKUP?

SUMU15

New Member
Joined
Jul 27, 2017
Messages
2
So, I'm new to this forum and hoping you can help me with a formula... I think it's simple but explaining it might be hard.

I have two tabs:

tab 1:
URNRef
2318YOU008
2319YOU009

<tbody>
</tbody>

tab 2:
RefsALES
YOU008£5
YOU008£10
YOU009£5
YOU009£25
YOU009£23
YOU009£15

<tbody>
</tbody>

I want a formula that will assign the correct URN to the ref in tab 2 - for example YOU008 would be assigned URN 2318 and YOU009 would be assigned URN 2319

I think I need to do a VLOOKUP on tab 2 that will assign the URN value in tab 2. So a combination of an if command and a v-lookup.

Make sense to anyone out there?

Thank you!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
maybe something like...

Unknown
ABC
1tab 1:
2URNRef
32318YOU008
42319YOU009
5
6
7tab 2:
8RefsALES
9YOU008£52318
10YOU008£102318
11YOU009£52319
12YOU009£252319
13YOU009£232319
14YOU009£152319

<tbody>
</tbody>
tab 1

Worksheet Formulas
CellFormula
C9=INDEX('tab 1'!$A$3:$A$4,MATCH(A9,'tab 1'!$B$3:$B$4,0))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,647
Members
449,325
Latest member
Hardey6ix

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