Export to excel show unique values

emanuelarcas

New Member
Joined
Jan 23, 2018
Messages
6
Hello,

I have this list exported from SP and contains duplicated values. This list will always contain duplicated data every time is refreshed.
I need to find a solution to have the list with unique values even if it is refreshed.

The remove duplicates and data validation functions is not working for what I need.

Thanks for the help.

Export to excel show unique values
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi emanuelarcas and Welcome to the Board. U didn't mention where your data is and what's supposed to happen when a duplicate is found. Dave
 
Upvote 0
Where is the month input? So U want to choose a month(J), enter a name in E12 with name list in (K) and sum unique tickets(L) for the name. Output in F12. What is your sheet name and what row does the data start on? Dave
 
Upvote 0
Please go to the details of the query & add the word DISTINCT into the SQL.
Then everytime it refreshes you'll get the list you're after.

So change it from whatever it is now, like SELECT field names FROM table
to make it SELECT DISTINCT fields names FROM table
 
Upvote 0
Hello. there is no SQL code. The file is an export from SP and I need to build this formula to have the number of QC per agent/month and related to unique ticket ID.
 
Upvote 0
I have this formula that works fine to pull out the count of QC, but is not distinguishing the unique tickets IDs:
=IF(ISNUMBER(COUNTIF(Sheet3!V:V,"="&Months!A1)),COUNTIFS(Sheet3!W:W,"="&C2, Sheet3!N:N,"=Yes", Sheet3!V:V,"="&Months!A1,Sheet3!F:F,"=QC"),"")

where
V=source month
W=source userID
N=source valid for user
F=source escalation type

Here is a pic on how it looks https://pasteboard.co/H4xze5T.png
 
Upvote 0
The Month input can be a separate sheet with all the moths. The month column format can be TEXT"mmmm yyyy", so is not necessary to by as shown in J.
The output would be like this:
UserIDMonthUnique QC
Januaryhere is the formula to count the number of QCs with unique ticket number and related to January.
akolasaFebruaryhere the same for Feb.
Marchhere same for Mar.

<tbody>
</tbody>

So the Sheet1 would have the above setup and the data will be pulled out from Sheet2 where is the data like in this image: https://pasteboard.co/H4xrxoi.png
I added an additional condition the result have to have "Yes" for the column Valid for userID as shown in column E from the picture.

The sheet is an export from a SP list which is updated with new data every day. The new data is refreshed in this export.

I hope I answered all your questions.
Thank you again for all your trouble.
 
Last edited by a moderator:
Upvote 0
The formula would be the best as the file will be uploaded on the SharePoint and the VBA is not working online (so I understand). Emanuel
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,988
Members
449,093
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top