+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : DMIN Help please!

Hybrid View

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: DMIN Help please!

    Bob, I appreciate all your help, and I am closing in on it!

    I understand that in the criteria section of my formula I have to have ="=BUP". That fixes my problem if I want to create a report for BUP, but what if I want to do it with another variable, say, ="=MOR"?

    My line is: =DMIN(Table2[#All],"Bottle #",'Drug Log'!B2:B3)
    B3 is a cell with a value linked to another cell that has a pull down list of all the drugs the user has inputted into the spreadsheet (itself another table). Is there a way to change the cell with the criteria in it, currently ="=BUP" to ="=MOR" when another drug code is selected? I tried inputting ="=B4" but it just gives me "=B4" in the criteria.

    The other idea I just had is whether there is a way to generate that criteria statement based on input from another cell. If I enter "MOR" in cell A1, can I get Excel to generate ="=MOR" in cell A2? I think this would work too, and probably be a lot easier. Thanks!
    Last edited by mosswood17; 05-02-2012 at 11:05 AM. Reason: Another idea on how to go!

  2. #2
    Registered User
    Join Date
    05-01-2012
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: DMIN Help please!

    Quote Originally Posted by mosswood17 View Post
    The other idea I just had is whether there is a way to generate that criteria statement based on input from another cell. If I enter "MOR" in cell A1, can I get Excel to generate ="=MOR" in cell A2? I think this would work too, and probably be a lot easier. Thanks!
    I just figured it out!!!!!!!!! The line I am using is: ="="&A5. By concatenating the text I can change it to whatever the target cell is updating my criteria whenever a new drug is chosen! Thanks so much for your help! I really love working with Excel! Someday I will figure out Macros, but this place looks to be the place to do that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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