Checking for same value in rows and calculate corresponding total - vba

I have a large s/sheet. Values in column A correspond to values in column B, C & D.
I need to combine some rows which have same value in column A and automatically calculates total of value in column B in all corresponding rows.
Then i need to delete all unnecessary rows
Any ideas how i can do this with some code?

I think that you can use Power Query or VBA. Probably you will be able to achieve this with formulas, but it will be not flexible. With Power QUery you can combine data from multiple sources, clean and transform and even load directly into PowerPivot model. If you will have some detailed information please let me know. If you can upload the sample workbook with your data i will be able to provide you some more information.

Related

Match data in one excel sheet from another sheet including duplicate values

In the first image in column F I have name of customers, and in column K I have deposited amount (here are multiple amounts which are similar). In the 2nd image, in column E I have received amount of amount and in Column H I want to input names of customer based on the data of Column F in Image 1. But problems are there are so many similar values that i cant use any formula to exactly put the correct customer name.
Please help, its a huge and recurring data. I need to simplify it. Help me solve this using easy formula.
Please feel free for more queries.
Thanks in advance.enter image description hereenter image description here
Vlookup, index and match. iferror and vlookup.give me a simple formula.

Number of unique IDs and sum of values per category in a large dataset

I have a large dataset (approx. 250.000 records) where I have an ID column, different categories an ID can belong to and a value column:
Now I want to calculate the unique occurences of each ID per each category and same for the sum of the value. The result for the example should look like this:
In the example I was able to do this manually. However, I have a large dataset and I cannot do this manually. I thought about it in different ways, but I did not find a good solution for this. One way would be to do it for each single cell with the PowerQuery Editor and then enter the desired number for each cell (this is the way I used to create the solution for the example). But then I have to do this manually with PowerQuery for each cell. Also doing all the work with usual Excel formulas for each single cell is not a good solution, as it includes a lot of manual work. And I would like to avoid doing it manually and thought there must be a better way. If there is an Excel solution I am happy with it. If it is necessary to use VBA I am also ok with it.

How can I limit the numbers of column in Matrix

Unlike Tablix, I was not able to use limiting expression such as =ceiling(rownumber(nothing)/6) in Matrix.
Do you have any ideas to achieve limiting no. of columns in matrix- in design only, without touching dataset.
Or I should create it in Tablix?
Any suggestions please?
I think the only way you could achieve this would be to specify the column and row that you want your data to appear in from within your source dataset.
This could be achieved by taking a row_number and then doing integer division (<row_number value>/6) to get the row it should fall into and then modular division (<row_number value>%6) to get the column it should fall into.
From here you can build up your tablix grouping on your row and column fields.

Populate table using VBA/Formulas

I'm trying to remove manual data entry and duplicate from a process. I have a report that is exported to excel and I'm trying to merge it with a prebuilt data set. I've tried the basic vlookup and if formulas. Where I am running into trouble is Column D lists an activity which may or may not be leave. When it is leave, I need the value returned to Column N and the Row corresponding to date and ID for that employee. Is this something that is even possible?
Sample Data

Find number of Unique Values per Item in Column B

I have a Column B with part numbers. These may repeat and can occur in the same warehouse, (Column A) and also different warehouses. I want to find the amount of times any particular part number appears in a unique warehouse.
I have tried a PivotTable and do not know if I need a macro or just a formula.
How might I achieve this?
Sorry, I think Remove Duplicates and Filter Advanced may not be your best bet. But as I understand your requirement a PT should suit: