+ Reply to Thread
Results 1 to 3 of 3

Need help nesting SUM and AND in multiple IFs formula!

  1. #1
    Registered User
    Join Date
    04-17-2024
    Location
    San Antonio, TX, USA
    MS-Off Ver
    2403
    Posts
    2

    Need help nesting SUM and AND in multiple IFs formula!

    Hello, community. I'm seeking help to solve the following formula and would greatly appreciate any and all solutions and suggestions.

    Need to solve:

    =IF(SUM(G60:G79)<2,"DAY",IF(AND(SUM(G60:G79)>1,SUM(G60:G79)<6,="WEEK",IF(SUM(G60:G79)>5,"MONTH")),0))

    First and third IFs function properly individually:

    =IF(SUM(G60:G79)<2,"DAY",0)

    =IF(SUM(G60:G79)>5,"MONTH",0)

    Second IF returns FALSE regardless of tweaking:

    =IF(AND(SUM(G60:G79)>1,SUM(G60:G79)<6,"WEEK"),0)

    Cells G60 thru G79 contain varying quantities of days. The purpose of this intended formula is to determine whether the rounded up sum of cells G60 thru G79 equals a 1 or "DAY", 5 or "WEEK", or 6+ or "MONTH". As shown above, I'm able to successfully produce the first and third IFs as standalone formulas, so I suspect that the FALSE result stems from an error in the second IF containing the nested AND. As a note, I'm aware of the IFS function and am experiencing similar if not the same challenge as my attempted IF formula. I'm also aware of the SWITCH alternative to IFS/multiple IFs, but have only seen it suggested as a solution to simplifying multiple entries from a list or table of text or number values and not from a SUM.

    That's all the best information I can think of to include, but let me know if any more is needed to solve my issue.

    Thanks in advance!
    Last edited by rubiod3; 04-17-2024 at 04:21 PM.

  2. #2
    Registered User
    Join Date
    04-17-2024
    Location
    San Antonio, TX, USA
    MS-Off Ver
    2403
    Posts
    2

    Re: Need help nesting SUM and AND in ultiple IFs formula!

    Similar to when your symptoms disappear during a visit to the doctor, I solved this minutes after posting this. Here's the solution I found for anyone needing the same in the future.

    =IF(SUM(G60:G79)<2,"DAY",IF(AND(SUM(G60:G79)>1,SUM(G60:G79)<6),"WEEK",IF(SUM(G60:G79)>5,"MONTH")))

  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
    81,086

    Re: Need help nesting SUM and AND in multiple IFs formula!

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.
    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.

+ 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. Extract data from ultiple columns and list in order
    By Sc0tt1e in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2018, 03:57 AM
  2. [SOLVED] Nesting IF Formula
    By Stenner in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2016, 04:43 AM
  3. Replies: 4
    Last Post: 02-26-2015, 06:10 AM
  4. Replies: 0
    Last Post: 07-10-2013, 11:06 AM
  5. Counting ultiple constants in cell
    By Westy in forum Excel General
    Replies: 4
    Last Post: 08-08-2006, 02:55 PM
  6. [SOLVED] ultiple if Statements
    By Newman Emanouel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2006, 11:10 AM
  7. [SOLVED] nesting another formula
    By BSantos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2006, 05:22 PM

Tags for this Thread

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