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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

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