Match/index look up for text

NyxieMoon

New Member
Joined
Jan 31, 2018
Messages
10
Hello,

I am trying to create a formula that I can compare a customer number on sheet1 (Column B) to sheet2 (Column A) and return the payment type provided on sheet2 Column B for sheet1 column C.

Sheet1
ABC
ABC Inc1234Formula here for Column B sheet2 return

<tbody>
</tbody>

Sheet2
ABC
1234ATMABC Inc

<tbody>
</tbody>


Thank you!
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try this

Adjust the ranges as per your requirement

=VLOOKUP(A1&B1,IF({1,0},INDEX(Sheet2!A1:A25&Sheet2!C1:C25,0),Sheet2!B1:B25),2,0)
 
Upvote 0
Try this out

=INDEX(Sheet2!B:B,MATCH(Sheet1!A1&Sheet1!B1,Sheet2!A:A&Sheet2!C:C,0))

Array formula so submit with CTRL + SHIFT + ENTER
 
Last edited:
Upvote 0
Hello,

Thank you both for your quick responses however neither work. I tried to ask this pretty generic, however I am probably not able to modify the formula for what I need it to be. I also am really inexperienced and not sure how to even submit the array; I did have CTRL and SHIFT held down while I pressed enter, however it tried to make me either save or pull up another file altogether.

I am going to ask it specifically. Thank you again!

Future Tab
Company NameCustomer NumberPayment Type (Need formula here)
ABC Inc1234
Blue Co4321

<tbody>
</tbody>


Payment Tab
Customer NumberPayment TypeCompany Name
1234CheckABC Inc
4321VisaBlue Co

<tbody>
</tbody>
 
Upvote 0


I think the name of your sheet 2 is "Payment", so you need to make the necessary changes. Also, you have made changes to your sheet 1 in post 1 above..

I made the below changes accordingly,

Just Enter

=VLOOKUP(
B1&A1,IF({1,0},INDEX(Payment!A1:A25&Payment!C1:C25,0),Payment!B1:B25),2,0)


 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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