Grouping.png
I have data in column B and C, I want to use formula to make D and E.
If I use =unique on D, the invoice numbers do not separate.
If I use =sumif in E, I will get many duplicated value.
Grouping.png
I have data in column B and C, I want to use formula to make D and E.
If I use =unique on D, the invoice numbers do not separate.
If I use =sumif in E, I will get many duplicated value.
Last edited by Bobbie Kan; 07-13-2021 at 11:26 PM.
In D2 put this...
=IF(COUNTIF($B$2:B2,B2)>1,"",B2)
in E2 put this...
=IF(SUMIF($B$2:$B$11,D2,$C$2:$C$11)=0,"",SUMIF($B$2:$B$11,D2,$C$2:$C$11))
good luck
EDIT: and you'll probably have to adjust the ranges, I only typed in as far as row 11 for the sumif, you'll have to adjust to your range.
EDIT2: you might have to replace commas with semicolons for your location. So change the "," to ";" if your location needs it for formulas to work.
Last edited by Sam Capricci; 07-13-2021 at 11:39 PM.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
Here is an alternative solution using Power Query
Excel 2016 (Windows) 32 bit
G H 1Invoice Number Sum of Invoices 2HD 197367336 9896 3HD 195946475 5390 4HD 197367739 7410 5HD 197367415 36435
Sheet: Sheet1
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").Please Login or Register to view this content.
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
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
Thank you, but I want the data to show exactly there.
Sam's formula works good
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks