+ Reply to Thread
Results 1 to 10 of 10

IF function with multiple criteria and values

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    4

    IF function with multiple criteria and values

    Hello,
    I need to do this:
    If the value for a cell in each row is less than the mid-point value for the row and column, display -1
    If the value for a cell in each row is greater than the mid-point value for the row and column display 1, otherwise display 0


    It needs to account for a value in both the same row and column. I tried this: =IF(AND(A1<A$24,A1<$W1),AA3,IF(AND(A1>A$24,A1>$W1),$AA$2,$AA$4)) but all I got where 1's


    Can anyone help?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: IF function with multiple criteria and values

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    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,139

    Re: IF function with multiple criteria and values

    I think you need to give us some more information. like a sample sheet with expected results. I don't know what answers you are expecting... but the formula seems to be doing what you are asking it to do...
    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

  4. #4
    Registered User
    Join Date
    07-25-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    4

    Re: IF function with multiple criteria and values

    OK so at the bottom where there are four ones the fourth should be -1 as it is less than w1 and d24 but it shows as one, all of them do.

    I hope this is enough for you to help if not just let me know.

    Thanks
    Attached Files Attached Files

  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,139

    Re: IF function with multiple criteria and values

    Should AA3 be locked??? $AA$3...

  6. #6
    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,139

    Re: IF function with multiple criteria and values

    Yes, that's your problem. AA3 was moving with your formula. Lock it down!

  7. #7
    Registered User
    Join Date
    07-25-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    4

    Re: IF function with multiple criteria and values

    ok AA3 is locked down and still all 1's

  8. #8
    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,139

    Re: IF function with multiple criteria and values

    Is it?? See the attached file.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-25-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    4

    Re: IF function with multiple criteria and values

    1 and -1 work but no 0

  10. #10
    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,139

    Re: IF function with multiple criteria and values

    It returns zer when the criteria are met. Copy it over to column S. That is th eonly time, with row A's data where it happens.

    s1 = 0.9458. That's greater than s24 (0.5997), but less than w1 (.95281). So it doesn't return AA3.

    S1 is greater than s24, but it is not greater than W1, so it does not return AA2.

    therefore it does return AA4.

    So, as I asid earlier; your formula IS doing what you have asked it to do. the question now is, have you asked it the right question?

    So far you have just pasted a CSV with no formulas. What are the underlying formulas? Please post an Excel sheet not a CSV
    Attached Files Attached Files

+ 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. [SOLVED] Lookup Function with Multiple Criteria Including Values Between Two Dates
    By webfeet2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2014, 12:01 PM
  2. [SOLVED] How to sum values based on multiple criteria with multple possibilities for each criteria?
    By boredaxel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2013, 02:26 AM
  3. SOS:Return multiple values against multi criteria match and index function
    By nitesh_inin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2012, 05:45 PM
  4. Unique Values Function with Multiple Criteria
    By dim06 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2012, 03:24 AM
  5. Replies: 2
    Last Post: 10-05-2011, 12:43 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