+ Reply to Thread
Results 1 to 7 of 7

Using DGET function to work on multiple cells...

  1. #1
    Registered User
    Join Date
    01-11-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    69

    Using DGET function to work on multiple cells...

    How do I use DGET function to return the values from a list.
    Suppose I have a table of data as below:
    Untitled0.png

    I want to find out the below in one go:
    Untitled.png

    How do I do that?
    I've attached a sample file to work on.
    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Using DGET function to work on multiple cells...

    For this sort of thing, SUMPRODUCT works well:

    =SUMPRODUCT(($C$3:$C$18=$D22)*($B$3:$B$18=$E22)*($D$2:$H$2=F$21)*$D$3:$H$18)

    copied across and down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Using DGET function to work on multiple cells...

    Or you could use SUMIFS in F22:

    =SUMIFS(INDEX($D$3:$H$18,0,MATCH(F$21,$D$2:$H$2,0)),$C$3:$C$18,$D22,$B$3:$B$18,$E22)

    Copy across and down as required.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-11-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    69

    Re: Using DGET function to work on multiple cells...

    Thanks both Glenn & Pete for your alternative methods. I know there are different ways of getting my output.

    But I was actually hoping to use the DGET function itself to do this kind of operations...is it impossible to do that?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Using DGET function to work on multiple cells...

    Is this homework/coursework of sone sort? Why else might you want a specific function?

  6. #6
    Registered User
    Join Date
    01-11-2019
    Location
    India
    MS-Off Ver
    2010
    Posts
    69

    Re: Using DGET function to work on multiple cells...

    Nothing like that..its just that DGET function is very simple and short for multi criteria lookups and I work with multi criteria lookups very often that's why I was hoping that there might be a way for my requirement and thats all, if there isn't any option in DGET then I'll have to go with other options and also I was just curious.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Using DGET function to work on multiple cells...

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. DGET function
    By cmcgath in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-30-2010, 04:46 PM
  2. Dget Function
    By Vikram Dhemare in forum Excel General
    Replies: 2
    Last Post: 05-13-2006, 03:10 AM
  3. [SOLVED] dget function
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. dget function
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] dget function
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] dget function
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] dget function
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] dget function
    By Jordan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2005, 04: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