+ Reply to Thread
Results 1 to 2 of 2

Large formula looking at a pivot table that updates as you select from data validation

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Large formula looking at a pivot table that updates as you select from data validation

    Hello,

    I have a macro driven file that looks at a table of data. In that table are a number of different entities. Each entity has various products. On a summary tab I have top 5 quadrants that are to pull in occupancy cost and some other information. On that summary tab I have a dropdown data validation list so the user can pick one of the different entities and it should rank the top five in all the quadrants based on that selection. The large is pointing at the entire pivot table. I get #NUM when I try this formula

    =LARGE(IF(Lookup!$C:$C=CONCATENATE("""&$B$1"""),Lookup!$G:$G,""),Summary!A17)

    It is an array formula so I am using control shift enter. Any idea what I am doing wrong? The lookup tab references are the columns in the pivot table and the concatenate B1 portion is the dropdown item.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Large formula looking at a pivot table that updates as you select from data validation

    putting aside efficiency, for now...

    1. there is an error in your concatenate formula - what exactly are you trying to return?
    if B1 encased in quotations use CHAR(34)&$B$1&CHAR(34) or """"&$B$1&""""

    2. what is the value in A17?
    if the numeric value is <= 0 you will get #NUM!


    if, having accounted for the above, you're getting a #NUM! error when you think there should be a value returned....

    do a COUNTIF check to verify how many matches you're actually going to find (will highlight discrepancies between criteria & source), i.e.:

    =COUNTIF(Lookup!$C:$C,CHAR(34)&$B$1&CHAR(34))

    in short, you would only get #NUM! at that point should A17 exceed the count of matches, or you happen to have #NUM! errors in your source data.

    finally, on an aside, I would avoid using function names as tab names - i.e. use something other than LOOKUP (even if just a prefix/suffix)
    Last edited by XLent; 04-23-2019 at 06:53 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using pivot table to lookup data from large table, but would like to edit
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2017, 12:29 PM
  2. Replies: 1
    Last Post: 06-06-2017, 12:03 PM
  3. Replies: 3
    Last Post: 02-02-2016, 01:49 PM
  4. Select item of a dropdown list (data validation) and refresh one pivot table
    By ATN123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2014, 07:40 AM
  5. [SOLVED] Macro that automatically updates pivot table when data in separate worksheet is updated
    By Femi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2013, 08:48 AM
  6. Large data set, pivot table and percentages
    By bladewalker in forum Excel General
    Replies: 0
    Last Post: 02-28-2012, 03:32 AM
  7. [SOLVED] large data file problems - pivot table with vba
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2005, 10:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1