Match values from pivot table to normal table

skatman

New Member
Joined
Jan 11, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I need to ask if it's possible to match value from pivot table item with value in another normal table and return the value from another column.

Example:

I have this pivot table with this "account" id slected

pt.jpg


and in 2nd worksheet i have this table

tb.jpg


And i would like to know if it is possible in VBA to compare the value selected in pivot table to the 2nd table and if the id is in the table return the email adress from that ID?
 

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.
Hi Skatman,

Please use XL2BB - Excel Range to BBCode to post values.
Otherwise people need to type your data in order to help and that is a bother.


No need for VBa to achieve that.

Imatch pivot.xlsx
ABCDEFG
1
2
3AccCustomeradftEmail
435348c2abc1abc2abc3abc4c2@abc.com
535353a4abc1xxabc2xxabc3xxabc4xxa4@abc.com
6
7
8IDNameEmail
935348c2c2@abc.com
1035353a2a2@abc.com
1135358a3a3@abc.com
1235363a4a4@abc.com
Sheet4
Cell Formulas
RangeFormula
G4:G5G4=INDEX($B$9:$C$12,MATCH(B4,$B$9:$B$12,0),MATCH($G$3,B$8:C$8,0))
A5,A10:A12A5=A4+5
C5:F5C5=C4&"xx"
C9:C12C9=B9&"@abc.com"
 
Upvote 0

Forum statistics

Threads
1,224,743
Messages
6,180,686
Members
452,994
Latest member
Janick

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