+ Reply to Thread
Results 1 to 9 of 9

if (formula cleanup)

  1. #1
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    if (formula cleanup)

    Here is a sample of a formula I am attempting:

    If C6:C35=AB66 and F6:F35=AB67 then sum(R6:R35)

    Can someone help me clean this up??
    thanks
    Last edited by simpson; 05-19-2010 at 02:45 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: if (formula cleanup)

    How can a range be = a cell? What are you trying to do? Sum C6:C35 and compare the result to AB66? If so, then

    =if(and(sum(C6:C35)=AB66,sum(F6:F35)=AB67),sum(R6:R35),"")

    If that is not what you need, explain a bit more, and attach some sample data in a workbook.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: if (formula cleanup)

    Hi,

    Do you mean if every cell in the range C6:C35 = AB66, and ditto with every cell in F6:F35 having to equal AB67?

    And what result do you want if they don't?

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: if (formula cleanup)

    Maybe

    =if(and(countif(C6:C35,AB66)=30,countif(F6:F35,AB67)=30),sum(R6:R35),"")

  5. #5
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: if (formula cleanup)

    My sumif formula reads
    =SUMIF($C$6:$C$36,$AB66,R$6:R$35)

    and it works great. but now I've added another criteria that needs to be met (F6:F35=AB67)before the sum of R6:R35
    does that help?

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: if (formula cleanup)

    You need Sumifs, then

    =SUMIFS(R$6:R$35,$C$6:$C$36,$AB66,F$6:F$35,$AB67)

  7. #7
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: if (formula cleanup)

    That works!
    Thank you so much!

  8. #8
    Registered User
    Join Date
    05-19-2010
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: if (formula cleanup)

    Sorry, is SUMIFS a standard excel formula? I can't find it here...

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: if (formula cleanup)

    Skipan, please take a few minutes to read the forum rules, and then start your own thread.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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