+ Reply to Thread
Results 1 to 16 of 16

Multiple IF condition

  1. #1
    Registered User
    Join Date
    02-28-2017
    Location
    NORTH AMERICA
    MS-Off Ver
    MS365 Version 2304
    Posts
    8

    Multiple IF condition

    Hi there,

    I have this file where I'm working with multiple columns.
    Column F is the result column.

    I have attached the File.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Multiple IF condition

    Administrative Note:

    Is your forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Multiple IF condition

    What is the logic?

  4. #4
    Registered User
    Join Date
    02-28-2017
    Location
    NORTH AMERICA
    MS-Off Ver
    MS365 Version 2304
    Posts
    8

    Re: Multiple IF condition

    Logic is:
    If A2=A3, and B2 is between 1-4, again, B2 is between 5-9, C2=C3, than result in F2 = 1, and F3=0

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    Not sure if this is what you want. It's mostly correct with the odd anomaly

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    Logic is:
    If A2=A3, and B2 is between 1-4, again, B2 is between 5-9, C2=C3, than result in F2 = 1, and F3=0
    I have no idea what that means.

  7. #7
    Registered User
    Join Date
    02-28-2017
    Location
    NORTH AMERICA
    MS-Off Ver
    MS365 Version 2304
    Posts
    8

    Re: Multiple IF condition

    Sorry, If C2 and A2 is equal to C3 and A3, B2<=4, B2>=5, result should be 1 or else zero.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    I don't understand
    B2<=4, B2>=5
    1, 2, 3, 4 … <= 4. 5, 6, 7, 8, 9, … >= 5. Hence, 1, 2, 3, 4, 5, 6, 7, 8, 9 …

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    This doesn't give you what you want but it demonstrates a possible approach:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-28-2017
    Location
    NORTH AMERICA
    MS-Off Ver
    MS365 Version 2304
    Posts
    8

    Re: Multiple IF condition

    Hey boss,
    Hope now i can make sense

    If A2=A3, C2=C3, where B2 <=4, (Answer 1 or else zero )

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    Again, this doesn't give your expected results, but it is what you have described:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    Same outcome, different way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    02-28-2017
    Location
    NORTH AMERICA
    MS-Off Ver
    MS365 Version 2304
    Posts
    8

    Re: Multiple IF condition

    Please see updated File in excel attached to represent the data.
    Column D is the result column.

    If A2=A3, C2=C3, where B2 <=4, (Answer 1 or else zero )
    Attached Files Attached Files

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    Nope. I've tried this all different ways. Your expected results are not viable.

    See the updated workbook. Compare the values in column A. They cannot produce your expected results.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    02-28-2017
    Location
    NORTH AMERICA
    MS-Off Ver
    MS365 Version 2304
    Posts
    8

    Re: Multiple IF condition

    Thanks a lot boss, appreciate your work and time spent on this.

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Multiple IF condition

    You're welcome. Thanks for the rep.

    Good luck working it out

+ 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] If Condition with Multiple Search & Multiple Results
    By GemBox in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2017, 02:14 AM
  2. [SOLVED] Multiple Condition Countifs with Uniqueness as Condition
    By semantics in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-21-2017, 05:21 PM
  3. sum ifs multiple condition on multiple sheets question
    By Mastiman in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2016, 11:06 PM
  4. Condition formatting of multiple condition formatted cells
    By merrin84 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-22-2015, 05:08 PM
  5. Replies: 1
    Last Post: 12-25-2012, 05:32 PM
  6. Replies: 6
    Last Post: 05-06-2010, 10:06 PM
  7. Multiple condition, multiple range formating
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-11-2009, 09:10 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