Needing EXcel macro to do this finding of duplicate rows and sum the data - duplicates

Hi Maybe someone can assist me here, I am a novice with macros so let me explain what i need
I need a macro to find the duplicates rows from the columns attached,and then sum (from the qty column) them once completed. leaving the summed rows only and the duplicates removed. I hope this makes sense
Thanx
Alan
rows

Related

Create a Macro the deletes rows based on a certain criteria

there can you help me write a macro that deletes all the rows that does not contain for example 'AUDJPY'
I made a Macro but it does not seem to be working. So I just want all rows that contain AUDJPY. If I do not need to use a macro and there is a easier way please assist
[I excluded the code as it is not accepted by stack overflow]
Get rows of information that are related or contain for example AUDJPY and delete all the other rows that does not contain "AUDJPY". I will like to do the same for other pairs such as EURCAD ect

How to create a query that is able to sort data into 2 groups?

so I'm very new to Access - just started learning it this week. I have data comprised of a bunch of policy numbers with corresponding ratings and premium values.
What I'm trying to do is create a query table that aggregates this data by rating (=1 or >1), this is the part I can't figure out. In design mode, I have put criteria =1 or >1, but it's not doing anything; when I switch to datasheet view, it just lists all of the ratings instead of two boxes that say =1 and >1. If anyone could give me insight on how to do this, I'd appreciate it!
From what I understand after reading your question, you want a query that shows two columns, one that counts the records with a rating of 1 and one that counts the records with a rating of greater than 1.
The best way to do this is to set up two expression columns, both wrapped in a count as you can see below:
SELECT Count(IIf([Rating]=1,[Rating],Null)) AS [=1], Count(IIf([Rating]>1,[Rating],Null)) AS [>1]
FROM tblSortRating;
If you have any questions or I've misunderstood your question leave a comment and I'll get back to you.

How to update multiple columns in excel using SQL query come formula

I have an excel sheet where I have multiple records stored(around 300). Each record has data in 20 columns. Now I want to update the data of 3 specific columns for all record without updating each record manually, for this I have come up with the following formula:
="update student set firstName='"&R2&"' , middleName='"&W2&"' , lastName='"&X2&"' where studentId="&M2&" ;".
I don't know if this is right or not. Also I haven't been able to complete understand the use of ampersand. Can somebody explain the referencing using ampersand? Hope someone can help me with this.

Get values from shown cells only in MS Access table

I have a struggle with a function in Access where I need to calculate simply the sum of a column of a table, but only those rows that are left back by the filter in a form.
Example:
The above is filtered to only show "Internal" projects.
I then need to make something that automatically calculates the sum of "Estimated time" and "Actual Time" etc. but I don't know how to access that table's filtered data. It is so easy in excel. The problem with excel is that more employees can not use it at the same time, which causes a lot of troubles.
I know i can make some bad solution by making another query of the table but then you have to select the filter in a combo box as well as the table filters. The reason why I don't just show the query is that the employees fill in new lines many times a day, directly into the table. Also they are able to delete from it, and should be.
I hope you can help me.
Best regards, Emil.

Count number of records in a field from another table in access

I have one table that I want to keep a running count of the total records for statistical analysis in another table. I tried using a calculated field but when I type in the count function it says it isn't valid and I am really confused why. Any help with this issue would be greatly appreciated!