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..​
 

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Watch MrExcel Video

Forum statistics

Threads
1,122,662
Messages
5,597,440
Members
414,143
Latest member
CDLAegis

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