+ Reply to Thread
Results 1 to 3 of 3

GETPIVOTDATA formula linked to Combo Box

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    GETPIVOTDATA formula linked to Combo Box

    Hi all,

    How can I write below GETPIVOTDATA formula to include all items of my field "Comp Status" if "ALL" is selected in my Combo Box? I have a named range called "Selection" that gets the value from the Combo Box, but if I select "All", that obviously won't work even if I try that with the "*" instead of "All". Is that solvable within the formula or do I need a nested IF to work around it?

    e.g.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: GETPIVOTDATA formula linked to Combo Box

    Hi esbencito,

    I wish I understood your question better. I think a Dynamic Named Range may be what you are looking for. Do you know about them?

    http://www.ozgrid.com/Excel/DynamicRanges.htm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: GETPIVOTDATA formula linked to Combo Box

    Sorry if I wasn't clear enough.

    what I meant is, I have a Combo Box (see below) where I select the Comp Status I want to look at. So my GETPIVOTDATA formula (field 5) refers to the Combo Box's cell link.

    Capture.PNG

    So if "Non Comp" is selected in my Combo Box, the formula would 'look' as follows:

    Please Login or Register  to view this content.
    But obviously, if I want to consider ALL items of that field, I was hoping the formula could look like that:

    Please Login or Register  to view this content.
    where "*" means it 'neglects' that field or sums ALL items it finds for that field in the pivot. The items "NON COMP" or "*" are obviously coming from the Combo Box cell link, above is just for illustration purposes...

+ 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] VBA for Autofilter linked with combo box
    By Baldev Kumar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2016, 05:34 AM
  2. [SOLVED] If/And formula linked to a combo box
    By JRose0303 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2014, 08:50 AM
  3. Combo box linked with arrays
    By SPCM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2014, 05:17 PM
  4. Combo Box to be linked with named lists
    By Nicola13 in forum Excel General
    Replies: 0
    Last Post: 08-31-2012, 10:18 AM
  5. Combo Box linked to dynamic range formula
    By foamcows in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 06:39 PM
  6. macro linked to combo box
    By minkus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2007, 06:31 PM
  7. Linked Combo Boxes
    By LRobinson3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2005, 09:40 AM

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