compare array help

Tootlez

Board Regular
Joined
Jan 30, 2014
Messages
61
I tried doing this in a simple isnumber-search, but i have over 64 cells to compare. - this worked for my other project that was only like 40.

I need to see if any of the values in column b are in column a then return column c into column d

i tried vlookup, lookup and stupidly a simple search.

Any clue how to do this? -- I'm not into vba right now no need to get into it either.

Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
this in D1 =IF(NOT(ISERROR(MATCH(B1;A:A;0)));C1;"")

it will check if B1 can be found in Col A and return C1 if found

did i understand correctly??
 
Upvote 0
neither of those seem to work.

a quick example:
my A2 contains B53, and A16 contains b13 etc ...
And some i know don't match, which i can manually fix.

but if the range changes, it won't catch that the value above the current cell is in the column.
 
Upvote 0
hope this helps - i don't know how to post the table so things are in columns, but i hope this works...I'll edit if some one tells me how to format it

and mind you that i have nearly 1000 skus, but only 73 of the code/finishes - so the range has to stay the same so i don't loose info
(and I tried to grab as many different examples to help see what i need)


skuCodeFinish
ML-177-3018Antique Iron
ML-8609-A179-PL14Nutmeg
ML-9803-143-PL37Restoration Bronze
ML-9803-144-PL37BDark Restoration Bronze
ML-341-17237CRestoration Bronze without Gold Highlights
ML-823-7739Spanish Iron
ML-823-8444White
ML-35156Antique Nickel
ML-830-84-PL61Vintage Rust
ML-860-84-PL66Black
ML-863-84-PL77Chrome
ML-867-44-PL84Brushed Nickel
ML-41286Textured White
ML-41491Antique Bronze
ML-891-84-PL94Heritage
ML-892-84-PL126Belcaro Walnut
ML-1000-44-PL138Aspen Bronze
ML-1001-44-PL143Oil Rubbed Bronze
ML-664-PL144Brushed Stainless Steel
ML-1001-126-PL156Noble Bronze
ML-668-PL164Heritage with Silver Highlights
ML-1016-44-PL166Corona Bronze
ML-1017-44-PL167Lathan Bronze
ML-1018-44-PL167BDeep Lathan Bronze
ML-1134-84172Smoked Iron
ML-721-355177Illuminati Bronze
ML-1137-84179Textured French Bronze
ML-1139-84196CTuscan Patina
ML-731-355206Aston Court Bronze
ML-770-301207Distressed Silver
ML-772-301209Distressed Bronze
ML-773-301211Tofino Bronze
ML-775-301216Cabella Patina
ML-776-301243Raffine Aged Patina
ML-778-301244Aged Stone with Travertine Stone
ML-779-301248Honey Gold
ML-1233-580249Liberty Gold
ML-1233-648252Nanti Champagne Silver
ML-828-84-PL267Dark Brushed Bronze
ML-1234-580267BDark Brushed Bronze
ML-828-91267CDark Brushed Bronze
ML-1279-172273Aged Patina Iron with Travertine Stone
ML-1291-580281Harvard Court Bronze
ML-829-91282Royal Oak Patina
ML-829-91-PL288Deep Flax Bronze
ML-1291-648289Vintage Cheshire Gold
ML-1297-580290Classic Oak Patina
ML-830-91292Terzetto Bronze
ML-841-84296Elcanté Patina Bronze
ML-861-84-PL298Aged Kinston Bronze
ML-1420-281299Regents Patina
ML-1422-281301Castlewood Walnut with Silver Highlights

<tbody>
</tbody>
 
Upvote 0
What is the expected result for the B-value of 84, that is, what do you want to see in the corresponding D-cell?
 
Upvote 0
I need to see if B is in A and then I need the respective C to be returned in the formula cell (D)

Columns B and C are linked, the value is B is always going to be the same value in C when B is present.

and all I'm wanting to do is: If B is in A then return C

And so if A is "ML-892-84-PL" and it contains the Bx value of "84" then I need the corresponding C value of "Brushed Nickel" to be returned in column D.
 
Upvote 0
I need to see if B is in A and then I need the respective C to be returned in the formula cell (D)

Columns B and C are linked, the value is B is always going to be the same value in C when B is present.

and all I'm wanting to do is: If B is in A then return C

And so if A is "ML-892-84-PL" and it contains the Bx value of "84" then I need the corresponding C value of "Brushed Nickel" to be returned in column D.

Does this...

=IF(ISNUMBER(MATCH("*-"&$B2&"-*",A:A,0)),$C2,"")

help?
 
Upvote 0
That did return values, but it didn't return the proper C to the A

What that did was if it found B in ANY A it returned C.

I need it to return the proper C for the B found in A. So reguardless of what the B/C is next to A I need it to return whatever the code's finish is that A possesses.


What the formula should do is this:
-----A------------------- = ---------D
ML-177-301=Castlewood Walnut with Silver Highlights
ML-8609-A179-PL=
ML-9803-143-PL=Oil Rubbed Bronze
ML-9803-144-PL=Bruhsed Stainless Steel
ML-341-172=Smoked Iron
ML-823-77=Chrome
ML-823-84=Brushed Nickel
ML-351=
ML-830-84-PL=Brushed Nickel
ML-860-84-PL=Brushed Nickel

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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