+ Reply to Thread
Results 1 to 5 of 5

multiple query

Hybrid View

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    Chamusca
    MS-Off Ver
    Excel 2007
    Posts
    3

    multiple query

    Hello and thanks in advance for any help.

    I need to do the following:

    three ranges in age:
    <45
    between 46 and 55
    >56

    six ranges in "pieces":
    75000
    75000 to 150000
    150001 to 250000
    250001 to 350000
    350001 to 450000
    450001 to 550000
    > 550000

    and 11 ranges in "Result"
    QM
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    for example:

    if "age" is <45 and "values" = 75000 the "result" should be "QM"

    but if "age" is ">56" and "value" is 75000 result should be "1"


    can anyone help?

    regards
    Sal
    Last edited by sal.fresco; 05-25-2011 at 11:33 AM.

  2. #2
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: multiple query

    We would need to understand the criteria for producing the result to help, can you provide these details? Also check your use of < (less than) and > (greater than), I think you may be mixing them up.

  3. #3
    Registered User
    Join Date
    05-23-2011
    Location
    Chamusca
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: multiple query

    Quote Originally Posted by Dave H9 View Post
    We would need to understand the criteria for producing the result to help, can you provide these details? Also check your use of < (less than) and > (greater than), I think you may be mixing them up.
    Hi Dave,
    Sorry about the mistake on the <> signs, you were right.

    What I need to do is in the attached file.

    Regards
    Attached Files Attached Files

  4. #4
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: multiple query

    Hi Sal,

    It's not the most elegant solution but please try the attached.

    Dave
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-23-2011
    Location
    Chamusca
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: multiple query

    Hi Dave H9,

    sorry for the late reply, but I've been away for a few days...
    The solution you provided works.

    thanks a bunch

    Sal

+ 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