+ Reply to Thread
Results 1 to 13 of 13

Thread: Criteria without using cells

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Criteria without using cells

    A couple years ago I defined criteria that did not refer to cells. I don't recall how I did it but it's certainly not obvious. Anybody know how to do this? I tried a bunch of different syntax but can't get it. See attachment. I am trying to populate the Equity column. I've simplified it here. The actual database is getting close to the 256 column limit (we're at column HG now).
    Attached Files Attached Files
    Last edited by Alpha Hunter; 12-28-2010 at 02:58 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2003
    Posts
    2,488

    Re: Criteria without using cells

    it's sort of go somewhere and bring something I do not know what. Be more specific or this thread will remain nearly empty.

    Please see attachment.
    Attached Files Attached Files
    Last edited by watersev; 12-23-2010 at 02:14 PM.

  3. #3
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: Criteria without using cells

    Just a guess, but try this

    In C2
    =INDEX($E$10:$H$15,MATCH($A2,$E$10:$E$15,0),MATCH($B2,$E$10:$H$10,0))
    Drag/Fill Down

    Adjust to suit your actual ranges.

    Hope this helps.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  4. #4
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Criteria without using cells

    Yes, I already solved it with an INDEX(MATCH,MATCH) but I've come across this challenge so often with many different functions I thought I'd throw it out there.

    There must be a simple way to describe criteria without using cells.

  5. #5
    Valued Forum Contributor
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2003
    Posts
    2,488

    Re: Criteria without using cells

    do you mean VB arrays, VB inputbox or some unknown for me method?
    Last edited by watersev; 12-23-2010 at 03:16 PM.

  6. #6
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Criteria without using cells

    I thought you could write it in quotation marks or something like that

  7. #7
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: Criteria without using cells

    Nae doot, PM snb

  8. #8
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Criteria without using cells

    You don't have to use cell references for arguments - you can use constants if you prefer.

    =MATCH("apple",A1:A10,0)
    or

    =MATCH(A1,{"apple";"banana";"carrot"},0)
    the 2nd illustrates an inline array where ; denotes a row and , a column

    =VLOOKUP(A1,{"apple",1;"banana",3;"carrot",4},2,0)
    etc...

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: Criteria without using cells

    You cannot use D-functions without criteria ranges, if that's what you are referring to.

  10. #10
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Criteria without using cells

    I like where you're going with these examples DonkeyOte, but can you show an example where it acts as the criteria for a function that takes criteria?

  11. #11
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Criteria without using cells

    I'm afraid I don't follow.... if you are referring to the D-functions then see romperstomper's previous post (ie must be stored in physical range).

  12. #12
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Criteria without using cells

    ok, I'll give up. I guess I'll call that solved (or unsolveable).

  13. #13
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Criteria without using cells

    The clearer you are in your requirements the more likely you are to get an (satisfactory?) resolution... thus far everything has been far too vague for anyone to offer anything meaningful in return I'm afraid.

    Per the initial sample file it appears as though you want to use constants for the criteria in your DGET call and as has been outlined previously you can't.

    Edit: to elaborate on D functions
    Given your set up in the original attachment you have an issue in so far as you can't create the requisite range reference (must be contiguous)
    You could however use a basic SUMIF with INDEX construct

    C2: 
    =SUMIF($E$10:$E$15,$A2,INDEX($F$10:$H$15,0,MATCH($B2,$F$10:$H$10,0)))
    copied down
    but again based on response to Marcol's earlier suggestion this is not seemingly what you're interested in.
    Last edited by DonkeyOte; 12-28-2010 at 03:09 PM. Reason: edit: added note re: DGET given attachment in OP

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0