Error on complicated Vlookup/GetPivotData Formula

manny88

New Member
Joined
Oct 28, 2016
Messages
33
Hi, I am trying turn a rota into an automatic rota where it fills itself when data is dumped into another worksheet and updated via pivot tables. Thier shifts are already pre-set from another worksheet with shift codes linking to the rota tab via vlookup.

The outcomes on the rota are; in, late, sick, awol, unpaid and rdo (rest day off) - whilst referring to the relevant dates... my formula returns errors or #value. Below are 2 formulas I tried. I don't have the file to share as it is at work on not allowed. What Am I Doing Wrong???

1-- =IFERROR(GETPIVOTDATA("Agent Name",'Absence Log'!$F$1,"Agent Name",$D16,"Type","AWOL","Date of event",MV$5),IFERROR(GETPIVOTDATA("Agent Name",'Absence Log'!$K$1,"Agent Name",$D16,"Type","Sick","Date of event",MV$5),IFERROR(GETPIVOTDATA("Agent Name",'Absence Log'!$P$1,"Agent Name",$D16,"Type","Unpaid","Date of event",MV$5),IF(GETPIVOTDATA("Agent Name",'Late Pivot'!$A$1,"Period",MV$5,"Full Name",$D16,"in","To look at"))))


2-- =IF(VLOOKUP(MS15,'Shift Codes'!A:L,7FALSE)="RDO","RDO",IFERROR(GETPIVOTDATA("Agent Name",'Absence Log'!$K1$,"Agent Name",$D15,"Type,"Sick",Date of event",MU$5)>0,"sick"),IFERROR(IF(GETPIVOTDATA("Agent Data",'Absence Log!$F1$1,"Agent Name",$D15,"Type","AWOL","Date of event",MU$5)>0,","AWOL"),IFERROR(IF(GETPIVOTDATA("Agent Name",'Absence Log'!$P$1,"Agent Name",$D15,"Type","Unpaid","Date of event",MU$5)>0,"Unpaid",""),""))))

I will be so grateful to whoever could solve this
 

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