Is there an easier way?

Dummy Excel

Well-known Member
Joined
Sep 21, 2005
Messages
1,004
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi All,
I have a spreadsheet with some data, and then a new worksheet with a table;
Spreadsheet:
Code:
ColumnD = business name ie walmart, kmart, costco
ColumnV = Invoice number ie 90126, 90127, 90128
ColumnW = ?????

Table:
Code:
ColumnA = business name ie walmart, kmart, costco
ColumnB = consignment prefix ie walmart = 6679060, kmart = 666905, costco = 8588010

In columnW I need a formula (i think) to say if D2= walmart then display the walmart consignment prefix plus the invoice (V2) although if D2=kmart then display the consignment prefix plus the invoice (V2) etc

I hope this is clear
Any help is greatly appreciated
thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
If you try it you will see.

Excel Workbook
ABCDVW
1Business NameInvoice Number?????
2walmart90126667906090126
3kmart9012766690590127
4Tablecostco90128858801090128
5costco8588010
6kmart666905
7walmart6679060
Sheet1
 
Last edited:
Upvote 0
Hi Jason,
Thanks for your reply. Yes it works 100% I didn't think it would work as you had the "&V2" which is the same as B2&V2. I must've had my beer goggles on as its the same thing!

again, thanks for your reply
regards
Samuel
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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