+ Reply to Thread
Results 1 to 8 of 8

"min if".....?

  1. #1
    Registered User
    Join Date
    08-27-2007
    Posts
    20

    Smile "min if".....?

    Hi I got this problem....
    in cell c5.....c100 I got an text value, in cell i5 I got 1 text value (who shows up in c5 to c100....
    in cell d5..d100 I got an number value.....

    I wanna find the lowest "number value" if the text is the same (if i5=c5..c100 then min d5..d100)

    I hope you understand my problem...

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523
    Are the text values in c5:c100 all unique ie the same text doesn't appear 2 or more times in different cells, so, for example, you don't have "hello" in both cell c5 and c27?

    If the values are unique, you could use the following formula:

    =VLOOKUP(I5,C5:D100,2,TRUE)

    However, this won't give the right answer if the text in c5:c100 contains repetitions.

  3. #3
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    As column C is not sorted, or at least we have not been told it is sorted you need

    =VLOOKUP(I5,C5:D100,2,False)



    Regards

    Dav

  4. #4
    Registered User
    Join Date
    08-27-2007
    Posts
    20

    thanx for all help so far.... but....

    yes the text in cell c5..c100 can repeats.....

    here is an example.....

    C5= hello D5= 1
    C6= goodbye D6=4
    C7= hello D7=3

    In cell K5 I wanna find the min. value of D5..D100 if I5= c5..C100

    (an yes all vaules in C5..C100 will repeats....)

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try this formula. Needs to be confirmed with CTRL+SHIFT+ENTER

    =MIN(IF(C$5:C$100=I5,D$5:D$100))

    copied down

  6. #6
    Registered User
    Join Date
    08-27-2007
    Posts
    20

    Smile well.... :)

    Now I think we are close... (no errors in the formula now)
    but the result is all wrong.....
    I got several cells that contains a value below zero....

    but in all my calculations it returns with zero all the time...?

    lets say several result should be like -11, -14, -9 and so on....
    but the lowest I get is zero....??

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Should show the lowest value regardless...

    Are you confirming the formula with CTRL+SHIFT+ENTER?

    To do this select cell with formula, press F2, hold down CTRL and SHIFT keys and press ENTER. Curly braces like { and } should appear around the formula in the formula bar.

    Are they true negative values? [rather than text, for instance]. If you have a "negative value" in D10 try using the formula

    =ISNUMBER(D10)

    this should give TRUE

    I've attached an example
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-27-2007
    Posts
    20

    Thumbs up thanx!

    well my fault... I got cells hand I mergded.... so when I change from i to h in the formula everythings worked fine...
    thanx alot for all help!

+ 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