+ Reply to Thread
Results 1 to 8 of 8

HELP! IF Multiple Range & Multiple Criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    41

    HELP! IF Multiple Range & Multiple Criteria

    Hello Guys!

    I'm trying to find a way to make a summary of items but depends on week coverage (week 1, week 2, etc.)..
    I would also like to indicate the month covering the weeks, i.e. Week 1-4=January; week 1-8=January-February; week 1-12=January-March

    I tried using IF but it was ohhhh sooooo long. I wasn't able to input all the formula I need because I reached the
    character limit.. Hope you guys can help me find an easier and shorter formula that can come-up with the same data elaborated further below:


    IF CELL A2>=1 AND A3<=4 THEN "JANUARY"
    IF CELL A2>=5 AND A3<=8 THEN "FEBRUARY"
    IF CELL A2>=9 AND A3<=12 THEN "MARCH"

    AND SO ON.. AND

    IF CELL A2>=1 AND A3<=8 THEN "JANUARY-FEBRUARY"
    IF CELL A2>=5 AND A3<=12 THEN "FEBRUARY-MARCH"
    IF CELL A2>=13 AND A3<=16 THEN "MARCH-APRIL"

    AND SO ON.. AND

    IF CELL A2>=1 AND A3<=12 THEN "JANUARY-MARCH"
    IF CELL A2>=5 AND A3<=16 THEN "FEBRUARY-APRIL"
    IF CELL A2>=13 AND A3<=20 THEN "MARCH-MAY"


    AND SO ON.. AND INCREASING WEEK COVERAGE..



    Thanks in advance! ^___^

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: HELP! IF Multiple Range & Multiple Criteria

    can you upload a sample workbook so we can see your layout etc? alos include some samples of what your expected outcome is and how you arrived at that?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-20-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: HELP! IF Multiple Range & Multiple Criteria

    Quote Originally Posted by FDibbins View Post
    can you upload a sample workbook so we can see your layout etc? alos include some samples of what your expected outcome is and how you arrived at that?
    hello dear, here's a sample file for your reference. hope you can help me out..
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-20-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: HELP! IF Multiple Range & Multiple Criteria

    Quote Originally Posted by Melissa Alex View Post
    hello dear, here's a sample file for your reference. hope you can help me out..
    by the way, if you update the blue cells (D6 & D7) in the file there, cell E2 will reflect the month covering the periods in dicated in the blue cells. However, my formula is not complete because of character limit, so basically, it can't cover all possible week coverage

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: HELP! IF Multiple Range & Multiple Criteria

    Hello
    I hope FDibbins won't mind me offering a possible solution. If you're happy to use a lookup table then perhaps it could be done as in my attached reply. It is possible to hard code the lookup table but this way it's more flexible if you wish to change the monthly break points.

    Hope this helps.
    DBY
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-20-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: HELP! IF Multiple Range & Multiple Criteria

    @ DBY

    wooow!! It's perfect!! thank you so much my dear! you're so great!..

    Thanks in advance too FDibbins! ^_^
    Last edited by Cutter; 10-21-2012 at 05:14 PM. Reason: Removed whole post quote

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: HELP! IF Multiple Range & Multiple Criteria

    You're welcome. Glad we could help. An example file always makes things easier to work out.

    Regards
    DBY

  8. #8
    Registered User
    Join Date
    10-20-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: HELP! IF Multiple Range & Multiple Criteria

    Quote Originally Posted by DBY View Post
    You're welcome. Glad we could help. An example file always makes things easier to work out.

    Regards
    DBY
    will take note of that.. thanks again!

+ 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