+ Reply to Thread
Results 1 to 15 of 15

Index/Match or sumproduct with concatenate

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Index/Match or sumproduct with concatenate

    Hi,

    Can anyone with help with a formula please? I have in the past used sumproduct however I need to know if it is possible to concatenate the data first?

    On the attached file I have two sheets “Summary for slides” and “Sales by Product”. The sales by product sheet can not change or else I would have added a column and concatenated the data here.

    Its there any way in which I can pull the data from the sales by product sheet where it would look up cell F4 on the “summary for slides” sheet and then match it with columns E and G on the “Sales by product” sheet and return the answer in column P

    Any suggestions?

    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Index/Match or sumproduct with concatenate

    You have multiple products with the same product name and spacer (e.g. there are 5 Product 1 Aluminium on the 'Sales by product' sheet) - are you looking to return a sum of all of their sales, or will there be a unique match in your real data?

  3. #3
    Registered User
    Join Date
    04-17-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index/Match or sumproduct with concatenate

    Hi ,

    I have fix the formula for your file but cannot attached or dont know to attached the file in this forum.

    Please provide your email id to mail the file.


    Regards
    Paresh

    Quote Originally Posted by pauldaddyadams View Post
    Hi,

    Can anyone with help with a formula please? I have in the past used sumproduct however I need to know if it is possible to concatenate the data first?

    On the attached file I have two sheets “Summary for slides” and “Sales by Product”. The sales by product sheet can not change or else I would have added a column and concatenated the data here.

    Its there any way in which I can pull the data from the sales by product sheet where it would look up cell F4 on the “summary for slides” sheet and then match it with columns E and G on the “Sales by product” sheet and return the answer in column P

    Any suggestions?

    Paul

  4. #4
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index/Match or sumproduct with concatenate

    Hi, I am looking to return the sum of all these matching products.

  5. #5
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index/Match or sumproduct with concatenate

    If you click "go advanced" rather than post quick reply, scroll down to manage attachements and you should be able to upload the file from there.

  6. #6
    Registered User
    Join Date
    04-17-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index/Match or sumproduct with concatenate

    How to attached the file in this forum in reply.......?

  7. #7
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Index/Match or sumproduct with concatenate

    OK, try this:

    =SUMPRODUCT('Sales by Product'!$P$6:$P$75,--('Sales by Product'!$E$6:$E$75=D4),--('Sales by Product'!$G$6:$G$75=E4))

  8. #8
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index/Match or sumproduct with concatenate

    Hi that formula worked! I have never seen it written like that, what does the "--" mean?

  9. #9
    Registered User
    Join Date
    04-17-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index/Match or sumproduct with concatenate

    Here is the file attached for your reference

    Regards
    paresh
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-17-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index/Match or sumproduct with concatenate

    Hope the file attached will solve ur purpose....

  11. #11
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Index/Match or sumproduct with concatenate

    The -- converts a Boolean value (True or False) into its equivilent numeric value (1 or 0, respectively)

    So --(5>10) = 0, while --(5<10) = 1

    It's one of the many things this forum has taught me - I was puzzled by it as well when I first started posting here.

  12. #12
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Index/Match or sumproduct with concatenate

    You can also replace the -- by *1 at the end of the inequality, (5>10)*1. It's probably less efficient, but if you use the "evaluate formula" function on it, you can see what happens.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  13. #13
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Index/Match or sumproduct with concatenate

    Duplicate post, sorry.

  14. #14
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Index/Match or sumproduct with concatenate

    @Andrew thanks for explaining. Although I dont fully understand it I will 100% look into it later!

    @Pareshvm -your formula didnt work as it only returned the first instance rather than the sum of all products.

  15. #15
    Registered User
    Join Date
    04-17-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index/Match or sumproduct with concatenate

    this can be done by simple formula of SUMIFS :-

    =SUMIFS('Sales by Product'!P:P,'Sales by Product'!E:E,'Summary for Slides'!D4,'Sales by Product'!G:G,'Summary for Slides'!E4)

+ 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