+ Reply to Thread
Results 1 to 11 of 11

sumif array problem

  1. #1
    Registered User
    Join Date
    07-12-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    sumif array problem

    Dear friends and respected seniors
    I have this data starting from cell a1
    Please Login or Register  to view this content.
    I am comparing the contents of column A and summing up similar data from column B
    a1 and a2 has A, hence 2+3 = 5,
    a3, a4 and a5 have B, hence 6+4+2 = 12,
    a6, a7 and a8 have C, hence 1+(-6)+2 = -3, and so on
    in c1 I have used this formula and dragged down till c8
    Please Login or Register  to view this content.
    the answers are correct, but that is not the output that i want
    In column D, i have entered the required output manually
    Can anyone please kindly help me with this problem
    Awaiting your replies.
    Thank you.

    I have posted this question here too
    mrexcel.com/forum/excel-questions/1071886-sumif-problem.html
    Last edited by romeo98; 09-24-2018 at 11:08 PM.

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

    Re: sumif array problem

    Hi Romeo,

    Here is your answer using a simple Pivot Table.

    From Respected Senior.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: sumif array problem

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    07-12-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: sumif array problem

    Thank you Marvin it works, but I would like to do it by using a formula

  5. #5
    Registered User
    Join Date
    07-12-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: sumif array problem

    Sorry alansidman I did not know about this cross-posting rule
    i didnt get any replies in MrExcel forum, hence asked this question here
    Last edited by romeo98; 09-24-2018 at 11:02 PM.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: sumif array problem

    Please read all our rules and before you go any further, post links to the other forum. Read the link in my earlier post to understand this.

  7. #7
    Registered User
    Join Date
    07-12-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: sumif array problem

    Hello alansidman
    I have edited the first post and included the original link to my question from another forum

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

    Re: sumif array problem

    OK Romeo,

    Try this SumIf() function for a non pivot answer. Look at the yellow filled cells for the formula below in the attached file.

    =SUMIF($A$2:$A$9,G2,$B$2:$B$9)

    From Respected Senior SumIf.xlsx

  9. #9
    Registered User
    Join Date
    07-12-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: sumif array problem

    Thank you Marvin

  10. #10
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: sumif array problem

    Quote Originally Posted by romeo98 View Post
    i didnt get any replies in MrExcel forum, hence asked this question here
    A little patience wouldn't have gone astray...
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  11. #11
    Registered User
    Join Date
    07-12-2018
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: sumif array problem

    Sorry Macropod
    henceforth i will be patient n keep in mind about cross-posting

+ 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. VBA array input array output problem
    By financerelated in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2017, 04:07 PM
  2. Problem with array in SUM(SUMIF formula
    By angelog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2016, 10:54 AM
  3. Array Storage Problem: Array Elements Deleted on 'End' Command
    By AidenS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-15-2014, 10:38 AM
  4. Array inside the SUMIF problem
    By AHB10 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2013, 10:10 AM
  5. Problem SUMIF-ing on an array
    By ANS in forum Excel General
    Replies: 6
    Last Post: 10-04-2012, 03:46 AM
  6. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2005, 01:54 AM
  7. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:30 AM

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