Pivot table or function?

jod227

New Member
Joined
Jul 11, 2014
Messages
11
Hello all,

I have data in 2 separate workbooks. In the first one I have data that includes a column that contains textual data that matches with (in different order) a column in the other workbook.

I have a number score in a column that's next to the text column in the 1st workbook (ex. 1-100) and a text score next to the text column in the 2nd workbook (ex. Yes, no, maybe). I ultimately need to see the scores next to each other based on the matching text in workbook 1.

Would this require an advanced pivot table of some sort? Any insight on this would be greatly appreciated!


Workbook 1 **what outcome would be**

white50.8yes
blue6.2no
green70.3yes
red9

<tbody>
</tbody>

Workbook 2

yellowno
green.0
greenyes
red
whiteyes
blueno
blue.0maybe

<tbody>
</tbody>

(Workbook 2 has a few thousand more rows than 1 but all of workbook 1's textual data is contained within the larger column in Workbook 2 - I only care about the text in Workbook 1)
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Workbook 1 **what outcome would be**
white50.8yes<<<<<<
blue6.2no
green70.3yes
red90
Workbook 2
yellowno
green.0
greenyes
red
whiteyes
blueno
blue.0maybe
formula in cell marked <<<<<
=IF(ISERROR(MATCH(A3,$A$10:$A$16,0)),"",OFFSET($A$9,MATCH(A3,$A$10:$A$16,0),1))

<colgroup><col span="11"></colgroup><tbody>
</tbody>
 
Upvote 0
I basically just highlighted the column and did a find and replace but I didn't figure out how to do it in the formula.
 
Upvote 0
=IF(ISERROR(MATCH(A3,$A$10:$A$16,0)),"",OFFSET($A$9,MATCH(A3,$A$10:$A$16,0),1))
becomes
=IF(ISERROR(MATCH(A3,$A$10:$A$16,0)),"",if(OFFSET($A$9,MATCH(A3,$A$10:$A$16,0),1)="","",OFFSET($A$9,MATCH(A3,$A$10:$A$16,0),1))

may not have right number of brackets as I have not checked it


<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,852
Members
449,194
Latest member
HellScout

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