+ Reply to Thread
Results 1 to 6 of 6

Sumifs and if else condition.

  1. #1
    Registered User
    Join Date
    12-26-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel for 365
    Posts
    62

    Sumifs and if else condition.

    Hi All, I have attached a sample workbook.

    Summary Tab
    E:6 to G:9 is using a sumifs formula on the "Data" tab to total my "actuals"
    H:6 to P:9 is my forecast which would be calculated as the sum of Actuals E through G/12-Cell D3

    Is it possible to combined these 2 formulas such that if the sumifs returns a total use that total, otherwise do the forecast calculation? Is this possible with a regular formula or maybe in vba?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumifs and if else condition.

    Some manually calculated expected forecast results would have been a help, but try:

    =IF(E$5<=$D$3,SUMIFS(Data!$C$2:$C$13,Data!$A$2:$A$13,Summary!$C6,Data!$D$2:$D$13,Summary!E$5),SUM($D6:INDEX($D6:D6,$D$3+1))/(12-$D$3))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumifs and if else condition.

    Oh. And take a moment to update your profile. Clearly, you are NO LONGER using Excel 2003 (.xlsx file attached). Providing solutuons for long since upgraded versions can hinder getting effective solutions

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Sumifs and if else condition.

    Hi,
    please fill in manually the results that you are expecting to see in your forecast columns.

    Thanks.

  5. #5
    Registered User
    Join Date
    12-26-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel for 365
    Posts
    62

    Re: Sumifs and if else condition.

    Thanks Digital Nomad, works perfect! And for the profile tip.

    PS I call myself a Finance Nomad PA->TX->VT->FL->CA

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumifs and if else condition.

    Mmm. Spent one night in FL, en route to Ecuador, but not in any of the others... yet.

    Glad to have helped and thanks for the feedback.

+ 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] SUMIFS - I cannot use a month condition
    By apoje in forum Excel General
    Replies: 14
    Last Post: 04-11-2019, 11:19 AM
  2. [SOLVED] SUMIFS with OR condition
    By yamalady in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2018, 11:13 AM
  3. How to use sumifs with multiple condition.
    By pranvinilesh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2017, 07:02 AM
  4. SUMIFS condition not working
    By mangolah in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-20-2017, 11:14 AM
  5. How can use SUMIFS by condition in row and column?
    By Akatecho in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2014, 11:41 PM
  6. [SOLVED] SUMIFS + condition on result
    By Davzx in forum Excel General
    Replies: 4
    Last Post: 06-28-2012, 12:59 PM
  7. [SOLVED] Using SUMIFS() with an OR() Like condition
    By DP978 in forum Excel General
    Replies: 4
    Last Post: 02-25-2010, 11:31 AM

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