+ Reply to Thread
Results 1 to 13 of 13

how do i set 2 criterias for the DGET in excel 2002

  1. #1
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    how do i set 2 criterias for the DGET in excel 2002

    DGET(wdata,"avgmax","month"=3 and "day"=5)
    how do I have 2 criteria?
    and do I have to have those curly brackets by typing shift or whatever?
    thanks
    PS the columns are called month, day, avgmax etc and the rows have every date in a year

  2. #2
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    Re: how do i set 2 criterias for the DGET in excel 2002

    I seldom use excel so I would not know how to do that.
    what I wish is to enter the month and day in some cells (or use TODAY) and find the stats for that day.
    thanks

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: how do i set 2 criterias for the DGET in excel 2002

    I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    Re: how do i set 2 criterias for the DGET in excel 2002

    great idea thanks
    see below
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    Re: how do i set 2 criterias for the DGET in excel 2002

    when do I have to use the ctrl? key when finishing a formula? I think it is with lists and ranges etc
    thanks

  6. #6
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: how do i set 2 criterias for the DGET in excel 2002

    Okay, so I created a helper column (which you can hide) to make life easier. I also took the liberty of moving your top things around so you could simply drag the formula to the right and it would fill in everything (if you so desired).

    I used these formulas:

    Please Login or Register  to view this content.
    for the data, and

    Please Login or Register  to view this content.
    for your helper column.

    See attached file. Hopefully it works in 2002 excel, I don't have anything that old unfortunately.
    Attached Files Attached Files
    Last edited by TheN; 08-26-2016 at 12:58 AM. Reason: Sorry

  7. #7
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    Re: how do i set 2 criterias for the DGET in excel 2002

    Thanks for trying... it said circular
    Attached Images Attached Images

  8. #8
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: how do i set 2 criterias for the DGET in excel 2002

    oh, I mustn't have changed the formulas in sheet after i moved the formulas over, sorry.

    copy the top formula in my post above (It's right) in the D7 cell

    Please Login or Register  to view this content.
    once again, sorry for the inconvenience.

  9. #9
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    Re: how do i set 2 criterias for the DGET in excel 2002

    thanks VERY much - that worked fine
    see attached.
    how do I convert the TODAY or NOW functions so your formula will accept their month and day numbers?
    yes I changed the row numbers in your fine D7 formula copied into D8 etc.
    thanks again

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: how do i set 2 criterias for the DGET in excel 2002

    Try this:
    1) Modify B7 to read: =MONTH(TODAY()) (change the format to general)
    2) Modify B8 to read: =MONTH(NOW()) (change the format to general)
    3) Modify C7 to read: =DAY(TODAY())
    4) Modify C8 to read: =DAY(NOW())
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: how do i set 2 criterias for the DGET in excel 2002

    I thought of something else that might be useful to you in this case.

    You can make it so your month/day options have unique drop downs that auto-populate based on your data.

    see this thread for an example.

    http://www.excelforum.com/showthread...=1#post4467192

  12. #12
    Forum Contributor
    Join Date
    08-20-2013
    Location
    north america
    MS-Off Ver
    Excel 2002
    Posts
    159

    Re: how do i set 2 criterias for the DGET in excel 2002

    everything now works.
    thanks guys for your help

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: how do i set 2 criterias for the DGET in excel 2002

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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. Excel Macro using two criterias
    By zachj3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2015, 12:20 PM
  2. DGET Function + External data from another excel file
    By Nader in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2006, 12:25 PM
  3. Outlook 2002 calendar dates exported to Excel 2002 sort incorrectl
    By scampbell in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-22-2006, 02:35 PM
  4. How can I use DGET in Excel with criteria that changes each line?
    By Werf Nort in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2006, 12:35 AM
  5. excel, how do I get sumif with two criterias?
    By Mosqui in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  6. Atomatic file name in excell 2002 from cel A1 (like in word 2002)
    By Steve & Dawn in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-22-2005, 03:05 AM
  7. [SOLVED] Access 2002 VB Module controlling Excel 2002 spreadsheet -Run-time
    By Mblackmore in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2005, 03:06 PM

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