Pivot on lookup formula results

stct80

Board Regular
Joined
Apr 26, 2010
Messages
59
Greetings to all!

I am trying to run a pivot table with a column having results of vlookup formula.

The vlookup formula on the base spreadsheet is :

=LOOKUP(2^15,SEARCH({"Overdue","Red","PastY","Yellow","Green","Complete","No_BL"},$J2),{"01","02","03","04","05","06","07"})

1st objective is for excel to read a column (J in this case) and populate the respective source cell column (I) with the appropriate number (from 01 thro 07).

Subsequently, I am trying to run a pivot on this column (I) value (01 thro 07) to group the pivot table data.

Unfortunately, pivot output is not picking any value from the source table column I, apparently due to the source cell format.

If I manually convert the value in column I to the appropriate number (from 1 thro 7), pivot works fine. However, I would not prefer to reformat each record in column I source cell.

Any advise on this issue?

Thank you in advance..​
 

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.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,862
Messages
5,834,036
Members
430,256
Latest member
Todor T

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
Top