+ Reply to Thread
Results 1 to 9 of 9

Multiple "IF" in One Cell

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Multiple "IF" in One Cell

    Hi guys,
    Im trying to create a spreadsheet to make work easier.

    I need to have multiple "IF" in one cell but not sure how to make it work.

    Basically I have a drop down list in
    C2 "Straight bars","Bent or Hooked Bars", and "Looped Bars"

    In E7 I'm trying to provide a value;
    if C2 = Straight Bars then E7 = min(E4:E6)
    if C2 = Bent or Hooked Bars then E7 = min(E4,E6)
    if C2 = Looped Bars then E7 = E5

    Just wondering is it possible to make this work?

    Thanks in advance!

    Capture.JPG

    Attachment 396244
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Multiple "IF" in One Cell

    Hi,

    Welcome to the Forum,

    Try the following formula in E7:

    =IF(C2="Straight Bars ",MIN(E4:E6),IF(C2="Bent or Hooked bars",MIN(E4,E6),IF(C2="Looped Bars",E5,"")))
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: Multiple "IF" in One Cell

    Try this.
    =IF(OR(C2="Bent or Hooked Bars",C2="Straight bars"),MIN(E4:E6),$E$4)

  4. #4
    Registered User
    Join Date
    05-20-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Multiple "IF" in One Cell

    Many Thanks cbatrody!
    The formula worked great!
    Much appreciated!

  5. #5
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Multiple "IF" in One Cell

    You can also try this...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Just see you have the same thing to do for multiple criteria
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Multiple "IF" in One Cell

    Quote Originally Posted by TCH86 View Post
    Many Thanks cbatrody!
    The formula worked great!
    Much appreciated!
    The formula provided in Post 2 is good but I wonder why you should two mutiple criteria for the same result?? If C2 = "Straight bars" Or "Bent or Hooked Bars" then your result should return to Minimum value from E4 to E6. Post#3 and Post#5 functions will also fit in your requirement if you wish to use them.


    Cheers!!!
    Anil Dhawan

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Multiple "IF" in One Cell

    Quote Originally Posted by adhawan06 View Post
    The formula provided in Post 2 is good but I wonder why you should two mutiple criteria for the same result?? If C2 = "Straight bars" Or "Bent or Hooked Bars" then your result should return to Minimum value from E4 to E6. Post#3 and Post#5 functions will also fit in your requirement if you wish to use them.


    Cheers!!!
    Anil Dhawan


    Please look at the description provided by the OP carefully, there is a difference between MIN(E4:E6) & MIN(E4,E6), E5 is omitted in the second instance!!!

  8. #8
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Multiple "IF" in One Cell

    Quote Originally Posted by TCH86 View Post
    Many Thanks cbatrody!
    The formula worked great!
    Much appreciated!

    You are welcome TCH86.

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

  9. #9
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Multiple "IF" in One Cell

    Quote Originally Posted by cbatrody View Post
    Please look at the description provided by the OP carefully, there is a difference between MIN(E4:E6) & MIN(E4,E6), E5 is omitted in the second instance!!!
    Oooopsss My bad..I didn't look at that carefully...


    @OP - you can Ignore my post for this

    Thanks @Cbatrody for making me correct..


    Cheers!!!
    Anil Dhawan

+ 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. Separate cell which have "Comma" into different row & multiple each row "n" times
    By Arun ebl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 11:22 PM
  2. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  3. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  4. Change "Parent" cell based on results of multiple "Children" cells
    By ccowman in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-14-2012, 02:33 AM
  5. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM

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