+ Reply to Thread
Results 1 to 8 of 8

3 conditions in an IF statement using the AND or OR function - Help needed

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    3 conditions in an IF statement using the AND or OR function - Help needed

    Hello everyone,

    I am hoping that someone can assist me with populating a timeline to showcase certain events.

    I have four events that occur at different points on the timeline, and I would like to highlight them with a text outcome.

    These events are related to commercial property lease events such as rent reviews, break option dates, and lease expiry.

    I have attached an Excel document where I have manually typed out how I want these events to appear after the formula is added based on the dates in C3:F3.

    My timeframe is in quarters which I need to keep in this format. For example, cell H2 reads as 01/01/2023, which refers to the time period from 01/01/2023 to 31/03/2023 and so on.

    I was able to get the start of a formula for one condition which reads as =IF(IF(AND(($F3<=I$2-1),($F3>=H$2)),"B","")="B", "B",IF(AND(($C3<=I$2-1),($E3>=H$2)),"-","")) but I need to have three more conditions based on the dates in D5, D6 & E3

    Thank you for your help.
    Attached Files Attached Files
    Last edited by doylzer; 09-13-2023 at 10:42 AM.

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

    Re: IF AND OR - Multiple conditions

    Why are you using dates in May when there is no May on the timeline? You need to explain rules for where things should go if there's no matching month.
    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
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Re: IF AND OR - Multiple conditions

    My apologies, I have to show the timeline in quarters. So for example cell H2 reads as 01/01/2023 refers to the time period from 01/01/2023 to 31/03/2023 and so on

  4. #4
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Re: IF AND OR - Multiple conditions

    I have the start of a formula that was I was able to pick up the break date with. =IF(IF(AND(($F3<=I$2-1),($F3>=H$2)),"B","")="B", "B",IF(AND(($C3<=I$2-1),($E3>=H$2)),"-",""))

    but I cant seem to get it to do the expiry or rent review. I am struggling to add to this.

  5. #5
    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,908

    Re: IF AND OR - Multiple conditions

    So can dates in columns C to F be anything other than the first of the month?

    You've given us just one row of sample data - it's really not enough - and I am sorry to say that your thread title is dreadful (it tells us nothing useful about the problem you have set us - it doesn't even allude to it properly - and really needs changing and making more specific).

    Nested IFs may not be the best approach, but we need more sample data.

  6. #6
    Registered User
    Join Date
    09-22-2014
    Location
    England
    MS-Off Ver
    MS 365 Enterprise V2210
    Posts
    85

    Re: IF AND OR - Multiple conditions

    I have updated the Excel title and thread with two examples in the excel now. I apologize for my poor title. I hope you find it more helpful now. I have also updated the attached Excel and the distribution. Does this help?

  7. #7
    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,908

    Re: 3 conditions in an IF statement using the AND or OR function - Help needed

    No, it isn't, and for future reference, a good title should tell us what you are trying to do, not how you think it should be done (which may not be the best approach). Never mind.

    I'll have a look at the updated workbook.

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

    Re: 3 conditions in an IF statement using the AND or OR function - Help needed

    So, to ask again, can dates in columns C to F be anything other than the first of the month?

+ 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] Help for IF conditions with multiple Conditions (scenario more than 5 conditions)
    By meily_o26 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2019, 02:13 AM
  2. Replies: 29
    Last Post: 01-01-2017, 10:25 AM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  5. Replies: 0
    Last Post: 08-14-2012, 01:18 PM
  6. Replies: 1
    Last Post: 12-05-2010, 04:39 AM
  7. How to multiple conditions to validate more than 2 conditions to .
    By Bhuvana Govind in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2005, 04:06 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