Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Get pivot data / V/Hlookup

Does VLOOKUP work on a pivot table with relative references vs. actual values?

This formula gets a #REF! result:

=GETPIVOTDATA("Quantity",'YTDHrsbyEmployee (2)'!$B$11,"Calendar
Year/Week",H7,"Employee",A13)

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Get pivot data / V/Hlookup

In article , ?B?
UGlsYXIgTW9yYWxlcw==?= wrote:

Does VLOOKUP work on a pivot table with relative references vs. actual values?


Probably - not tried it, but if you're getting a #REF! on the pivot table you'll
probably get a #N/A! error from the VLOOKUP.

This formula gets a #REF! result:

=GETPIVOTDATA("Quantity",'YTDHrsbyEmployee (2)'!$B$11,"Calendar
Year/Week",H7,"Employee",A13)


That'll be because either H7 or A13 contains a value not in the Pivot Table.

Try putting the GETPIVOT function inside an IF(ISERROR() function, e.g.:

=IF(ISERROR(GETPIVOTDATA(....)),0,GETPIVOTDATA(... .))

which will provide a 0 if the row or column header doesn't exist (which is
probably what is causing the #REF! Error).

--
Spence
Computing Services - because IT needn't be difficult
http://www.compservonline.co.uk/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hlookup a value in a column and display the data 12 rows below. VZW Justin Excel Worksheet Functions 3 August 4th 09 12:49 AM
Matching data from three columns (VLOOKUP, HLOOKUP, etc...)-URGENT shulmany Excel Worksheet Functions 5 January 15th 09 09:04 AM
Pivot Table Data Adding contents of two pivot tables and param que Roundy Excel Discussion (Misc queries) 0 July 2nd 07 10:20 PM
can i use hlookup to find data in another file rmaris Excel Discussion (Misc queries) 4 May 6th 07 12:18 AM
Unable to sort data in excel with cells containing if & hlookup MarcHere Excel Worksheet Functions 1 November 14th 05 04:06 PM


All times are GMT +1. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"