+ Reply to Thread
Results 1 to 8 of 8

Using sumif where the criteria depends on value of a merged cell

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2016
    Location
    india
    MS-Off Ver
    2013
    Posts
    3

    Using sumif where the criteria depends on value of a merged cell

    Hi ..
    Please help me with a formula which adds values of COL1 depending on value of the merged cell in COL2..
    COL2 always has a merged cell of 4 rows ..
    i am trying to use sumif but this takes only the value of the col1 first cell since technically the merged cell is only one cell.
    i know that this can easily be done in vba but i am trying to figure out a way using formulae.
    Also the cells cannot be unmerged

    SUM A=11
    SUM B=20

    COL1....COL2
    1 .........A
    5........ *A
    ...........*A
    ...........*A
    4 ........ B
    9 ........*B
    6 ........*B
    ...........*B
    1..........B
    ...........*B
    ............*B
    .............*B
    2 ...........A
    1 ..........*A
    1 ..........*A
    1 ..........*A

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using sumif where the criteria depends on value of a merged cell

    Also the cells cannot be unmerged

    Why not?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using sumif where the criteria depends on value of a merged cell

    These should do it
    Formula: copy to clipboard
    =SUMIF(B2:B17,"*"&"A",A2:A17)

    Formula: copy to clipboard
    =SUMIF(B2:B17,"*"&"B",A2:A17)
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    02-21-2016
    Location
    india
    MS-Off Ver
    2013
    Posts
    3

    Re: Using sumif where the criteria depends on value of a merged cell

    thanks but this still doesnt solve the issue .. it still takes only the first row of col1 and not the other 3 rows

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using sumif where the criteria depends on value of a merged cell


  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using sumif where the criteria depends on value of a merged cell

    Attach a sample workbook. 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 use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    02-21-2016
    Location
    india
    MS-Off Ver
    2013
    Posts
    3

    Re: Using sumif where the criteria depends on value of a merged cell

    Pic attached ..
    col1 has values to be added depending on entry of the merged cell in col2.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using sumif where the criteria depends on value of a merged cell

    No picture or workbook...Upload a workbook instead of a picture if at all possible. No one can work with a picture.

+ 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] Need vba to delete the rows depends upon criteria of 3
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2016, 05:19 AM
  2. Ms access Vba Save Data to xl depends upon 1 table pick & Depends 2 Upon fiterDate
    By breadwinner in forum Access Programming / VBA / Macros
    Replies: 14
    Last Post: 05-29-2014, 10:59 PM
  3. [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
  4. Limit merged cell data; Place excess into next merged cell down
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 10:35 PM
  5. [SOLVED] VB:ClearContents Error on Merged Cell - But I dont have Any Merged Cell
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-24-2013, 06:33 AM
  6. Replies: 4
    Last Post: 06-15-2012, 04:07 AM
  7. [SOLVED] how do i link merged cells to a merged cell in another worksheet.
    By ibbm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2006, 06:45 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