Afternoon All,
I am trying to create a pivot table but the I need it to return the value of the cell rather than a sum or count.
I have attached a file demonstrating what I need... I am stuck!!
Thanks
Afternoon All,
I am trying to create a pivot table but the I need it to return the value of the cell rather than a sum or count.
I have attached a file demonstrating what I need... I am stuck!!
Thanks
A PT can't populate the DATA field with Text unfortunately.
Is the relationship of Part No to Xref 1:1 as your example implies or in reality are you looking to concatenate multiple records... ie there may be multiple "Competitor Nos" per Part No. / Xref combination ?
If not you can use an INDEX/MATCH approach but the 1:1 is of critical importance.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
No, there maybe multiple competitor numbers against any part number
In that case I'm afraid you will want/need to utilise a UDF (VBA) -- is that feasible in your environment... ?
The only alternative I can think of would be to create a key which concatenates strings for you...eg:
Thus the last record for any combination contains a string of Competitor Nos.![]()
Please Login or Register to view this content.
Then the matrix:
However aesthetically this may not be ideal and pending length of final string in D it may fail (if string length exceeds 255 chars)![]()
Please Login or Register to view this content.
I can use basic VBA but wouldn't know where to start with this...
I have just checked the data and in reality there can be more than one competitor to any part number but this should not heppen so an INDEX / MATCH formula should work.
Can you help with this?
I would advise you adopt the formula approach outlined earlier... see attached (Others may differ mind...... they normally do!)
IMO if the *real* ranges are vast VBA would be best but you should always adopt that which you are most comfortable with given you must maintain it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks