Trouble searching multiple columns for matching text and bringing back specific data

Wellsie78

New Member
Joined
Sep 22, 2015
Messages
1
Hi all,
I am need of some help with creating a formula in order to search 2 columns(Columns A and C) for matching data and bring back a value from a third column(Column B).<o:p></o:p>

I currently have 3 columns of data that I am trying tosearch to provide particular values for each instance of matching data.<o:p></o:p>
Please find below an extract of data;<o:p></o:p>
[TABLE="class: MsoTableGrid"]
<tbody>[TR]
[TD]
<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]
A<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]
B<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]
C<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]
D<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]SUPPLIER NAME<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]SUPPLIER CODE<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]NARRATION<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]REQUIRED OUTCOME (by formula)<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]1<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]AVIS AUSTRALIA<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04321<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase BestBuys.com<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]2<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]DE NEEFE SIGNS<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04407<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase Whitcoulls Gallery<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]3<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]RICOH AUSTRALIA<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04441<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase (NZD 17.36) Whitcoulls Internet Store<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]4<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]ZALLCOM<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04444<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase Legato Espresso Cafe<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]5<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]LEASE PLAN<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04567<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase The Stamford Plaza Sydney<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]04660<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]6<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]STAMFORD PLAZA<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04660<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase The Stamford Plaza Sydney<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]04660<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]7<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]DARWIN CITY COUNCIL<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04737<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase The Stamford Plaza Sydney<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]04660<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]8<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]TOSHIBA AUSTRALIA PTY LTD<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04802<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase Profile Publishing<o:p></o:p>
<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]9<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]COMPLETE OFFICE SUPPLIES<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04823<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase Gecko Printing<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]10<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]THOMSON REUTERS<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]04973<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase Stamford Sydney Airport Hotel<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]05436<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]11<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]STAMFORD SYDNEY AIRPORT HOTEL<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]05436<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase Kwik<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]12<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]TEMPORARY FENCING PTY LTD<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]05494<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]Purchase (15.65USD) Ricoh Australia<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]13<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]DEPT FOREIGN AFFAIRS & TRADE<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]05621<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]14<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]KWIK COPY PRINTING<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]05675<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]15<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]ADELAIDE CITY COUNCIL<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]05830<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]16<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]FOUR SEASONS HOTEL SYDNEY<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]05934<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]17<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]SOUND ADVICE<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]06233<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent"]18<o:p></o:p>
[/TD]
[TD="width: 130, bgcolor: transparent"]CREDIT CARD – ONE OFF CREDITORS<o:p></o:p>
[/TD]
[TD="width: 124, bgcolor: transparent"]99999<o:p></o:p>
[/TD]
[TD="width: 133, bgcolor: transparent"]<o:p></o:p>
[/TD]
[TD="width: 126, bgcolor: transparent"]<o:p></o:p>
[/TD]
[/TR]
</tbody>[/TABLE]
<o:p></o:p>
So what I am trying to achieve is;<o:p></o:p>
I want for each instance of a particular supplier referencedin column C, for a search to be done on column A, and for the correspondingsupplier code in column B to be brought back to column D.<o:p></o:p>
So for example, for ‘Purchase The Stamford Plaza Sydney’(cell reference C5,C6, and C7) I would like the formula to search column A,find ‘Stamford Plaza’ (cell reference =A6) and place in the relevant cells(cell references = D5,D6 and D7) in column D, supplier code 04660.<o:p></o:p>
For narrations that do not have a corresponding suppliername in column A, the ‘CREDIT CARD – ONE OF CREDITORS’ supplier should be used, supplier code 99999,e.g. Purchase Whitcoulls Gallery (Cell reference = C2), would produce in D299999.<o:p></o:p>
Columns A and B are a listing out of the finance system andtherefore has potentially thousands of values, column C is out of a credit cardsystem and potentially has hundreds of values.<o:p></o:p>
I have used various formulas incorporating wildcards in IFstatements, COUNTIF, VLOOKUPS….<o:p></o:p>
I would be really appreciative of any advice or outcomesthat can be offered.<o:p></o:p>
Thank you in advance J<o:p></o:p>
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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