+ Reply to Thread
Results 1 to 5 of 5

Lesser of two cells that meet multiple criteria...

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Lesser of two cells that meet multiple criteria...

    Hello, I need help trying to figure out the proper way to enter a formula that will show the results of two other cells based on whichever is "lesser" and also meets two other criteria.

    These are the attempts I have been working on but still not able to function properly.

    ---------------------------------------------------------------
    =IF(I7<5000,I7,IF(I5<5000,I5,IF(I7>5000,"5000.00",IF(I5>5000,"5000.00",IF("","")))))

    =IF(F7>5000,F7,IF(F7<5000,"5,000.00",IF("","")))


    =IF(F7>5000,"5,000",IF(F7<5000,F7,IF("","")))

    =+IF(OR(K12>0),IF(AND($L$8="Yes"),K12,""),"")

    =+IF(I7="","",IF(I5<I7,IF(AND(I5>5000,"5000.00",I5),IF(OR(I7<I5,(AND(I7>5000,"5000.00",I7)))))))

    =+IF((I7="",""),IF(OR(I7<5000,I7<I5,I7>5000,"5000.00",I7),IF(OR(I5<5000,I5<I7,I5>5000,"5000.00",I5)))))

    ---------------------------------------------

    Essentially we need the one main cell to only display the results of whichever out of the two other cells, "I7" and "I5" are lesser than the other and only if it is under "5,000", if the amounts are both over "5,000" than we need the main cell to display a max of "5,000". And of course, if there is nothing displayed in either cells than we want the main cell to not show anything, "If nothing , do nothing" as well.


    I hope I explained that clear enough.

    Thank you all for your help with this if you can figure it out... it's been driving me crazy.

    - George

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Lesser of two cells that meet multiple criteria...

    maybe this one if i understand it correctly. other wise can you rephrase the conditions on a better way
    something like

    if I7 and I5 > 50000 then 50000
    if ....

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Lesser of two cells that meet multiple criteria...

    try something like:
    =If( I7=I5, result if true,If(And( I7>I5,I7>5000),result if true,IF(And(I5>I7,I5>5000),result if true,result if false)))

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    12-02-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Lesser of two cells that meet multiple criteria...

    vlady, thank you very much! You're amazing! I wasn't aware of the "MIN" functions in excel... your formula WORKED!!!

    =IF(SUM(I5,I7)=0,"",IF(AND(I5>5000,I7>5000),5000,MIN(I5,I7)))


    I love this site.


  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Lesser of two cells that meet multiple criteria...

    Thank also.
    Regards,
    vladimir

+ 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.6.0 RC 1