+ Reply to Thread
Results 1 to 4 of 4

how Sumif(Concatenate values from 2 columns, Ref Value, Concatenate values from 2 columns)

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    how Sumif(Concatenate values from 2 columns, Ref Value, Concatenate values from 2 columns)

    Hello,

    I'm trying to do a sumif formula, but the 2 ranges need to be created first to form unique values. is it possible? or do I need to create extra columns to separate concat first?

    just like this - Sumif(Concatenate values from 2 columns, Ref Value, Concatenate values from 2 columns)

    i apologize in advance if this is not clear, would appreciate your kind help!

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: how Sumif(Concatenate values from 2 columns, Ref Value, Concatenate values from 2 colu

    Hi Mojof,

    Welcome to excel forum.

    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 then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: how Sumif(Concatenate values from 2 columns, Ref Value, Concatenate values from 2 colu

    Hello,

    Sorry I'm not able to upload a file, but I have taken a screen capture

    On the left side, you can see in column C that it is a concat between ID1 & ID2. I need to concat because ID1 is not unique, and under the ID1 category there are different variations (found in ID2 column). Hence, I first need to create a unique ID (column C), in order to sumif the values on the right side (column J). Similarly on the right side, I would need to create a corresponding unique ID found in column I.

    What I want to know is whether I can use a sumif without having to take the extra step to create the extra concat columns (C & I). I am open to other solutions that doesn't use sumif. Thank so much!

    Capture.JPG
    Attached Images Attached Images
    Last edited by mojof1; 07-28-2016 at 01:44 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,175

    Re: how Sumif(Concatenate values from 2 columns, Ref Value, Concatenate values from 2 colu

    Use SUMIFS

    =SUMIFS(D:D,A:A,id1,B:B,id2)

+ 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] Concatenate data from cells by values from two columns
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-14-2016, 04:02 PM
  2. How to concatenate adjacent cells based on values present in previous columns?
    By Palraj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2014, 01:01 AM
  3. Copy Values from two columns and Paste them in one (Concatenate).
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-08-2014, 11:12 AM
  4. [SOLVED] Excel function or script for concatenate all values from B:B for same columns in A:A
    By Odeen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2012, 10:29 AM
  5. Concatenate values from columns and deleting duplicates
    By RandomP in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2011, 06:20 PM
  6. SUMIF - add values from one column based on values in two other columns
    By goodmike in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2008, 08:04 PM
  7. concatenate values two columns
    By matrixknow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2007, 08:52 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