+ Reply to Thread
Results 1 to 5 of 5

sumif with few criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2016
    Posts
    145

    sumif with few criteria

    Hey community,

    I am using following formula

    =sum(if((isnumber(match(run,market,0)))*(sifaris>0)*(urun<>"""")*(not(isnumber(match(teri,ayi,0)))),inted))
    I want to use 1 more criteria sum if asm=asma

    Can anyone help me to add that criteria to formula?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,243

    Re: sumif with few criteria

    Hey Akbarov,

    I thought Excel had a SumIfs function built into 2016 version. Have you looked at it? https://support.office.com/en-us/art...6-611CEBCE642B
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2016
    Posts
    145

    Re: sumif with few criteria

    Thaanks but i am still unsuccesfull. Can you help me with full code please?

    Sub BonaquaASM1()
    Application.ScreenUpdating = False
        Dim Markets As Worksheet, lr As Long
        lr = Cells.Find("*", , xlValues, , xlRows, xlPrevious).Row
        Set Markets = Sheets("sheet4")
        Sheets("DATA").Range("A1:A" & lr).Name = "urun"
        Sheets("DATA").Range("L1:L" & lr).Name = "sifaris"
        Sheets("DATA").Range("M1:M" & lr).Name = "Printed"
        Sheets("DATA").Range("E1:E" & lr).Name = "teri"
        Sheets("DATA").Range("H1:H" & lr).Name = "asm"
        Sheets("sheet4").Range("AP1:AP" & lr).Name = "ayi"
        Markets.Range("c1:c" & lr).Name = "MARKET"
        With Sheets("DATA").Cells(2, "BB")
        .FormulaArray = "=sum(if((isnumber(match(run,market,0)))*(sifaris>0)*(urun<>"""")*(not(isnumber(match(teri,ayi,0)))),printed))"
        .Value = .Value
    End With
    End Sub

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,243

    Re: sumif with few criteria

    Hi akbarov,

    I had no idea you needed the formula in VBA format. To get close to an answer, I'd need a workbook showing what you have. If you can attach a workbook with a good example, we could work on it...

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    08-12-2019
    Location
    Illinois
    MS-Off Ver
    asa
    Posts
    10

    Re: sumif with few criteria

    Interesting formula

+ 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] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  2. [SOLVED] Multiple Criteria SUMIF Using Column as Negative Criteria
    By freybe06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2014, 04:46 PM
  3. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  4. SumIf using date criteria range and one other criteria
    By DJTMONEY in forum Excel General
    Replies: 1
    Last Post: 04-20-2010, 04:10 PM
  5. SUMIF with multiple criteria, one criteria a specific string
    By Weasel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2008, 05:32 PM
  6. use Sumif for 2 criteria?
    By zatarro in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2008, 08:42 AM
  7. nested sumif or sumif with two criteria
    By dshigley in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-04-2005, 11: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