MS Excel question

edmundoab

Diamond Member
Apr 21, 2003
3,223
0
0
www.facebook.com
~~~ PSA ~~~

Off Topic is NOT the Software - Apps, Programming and Games forum.

AnandTech Moderator


---

Hello guys,

I didn't get much response in the "Software-Apps" category page, thought there maybe more people reading the Off "Topic" page

Here is my question,
I need to have a formula in Excel where it should be able to detect the amount of duplicates in one data range

say S/N: abc123 found in location A3,C2, and H4, the column with the formulation should be able to give me like "abc123--3"

in the previous thread, thanks to power engineer, he suggested a line of code for me.
but that only works for one column of data to compare with one specific entry

example in column D10:-

=IF(LEN(C10)>0,IF(COUNTIF(C$1:C9,C10)>0,C10 & " -- " & TEXT(COUNTIF(C$1:C9,C10)+1,"0"),""),"")

how do I do it in a range? arrays needed for this?
i tried looking online but there are functions for "MAX" and "SUM", but I am not sure how to even use them to tackle this issue

any help from computer wizz out there?
 

Hector13

Golden Member
Apr 4, 2000
1,694
0
0
If you just want the number of occurences of a string in your range, you can use an array function like:

=sum((DATA_RANGE = VALUE)*1)

for example, if your range of values is in A1:C3 and the value you want the count for is in E1, you would use:

=sum(($A$1:$C$3=E1)*1)

make sure you press Control-Shift-Enter when entering these forumals.
 

edmundoab

Diamond Member
Apr 21, 2003
3,223
0
0
www.facebook.com
but I dont want just a string in particular,

i want it to be able to detect more then one duplicated entries and indicate the number of occurance in that data range

should it so happen just have one duplicate so be it,
but should it have 2 or more , at least the formula should be able to show it?
 

Hector13

Golden Member
Apr 4, 2000
1,694
0
0
Originally posted by: edmundoab
but I dont want just a string in particular,

i want it to be able to detect more then one duplicated entries and indicate the number of occurance in that data range

should it so happen just have one duplicate so be it,
but should it have 2 or more , at least the formula should be able to show it?

I am not sure what you mean here... the formula above wil simply tell you the number of occurences in whatever range you give it. It won't matter whether there is one, none, or more than one occurence, the formula will still work.
 

kranky

Elite Member
Oct 9, 1999
21,017
147
106
I think he's saying he doesn't want to look for a specific string. He has a range of values, and wants a formula that will find any duplicated values in the range, and for each one which has more than one occurrence it should show the value itself and the number of occurrences.
 

edmundoab

Diamond Member
Apr 21, 2003
3,223
0
0
www.facebook.com
Originally posted by: kranky
I think he's saying he doesn't want to look for a specific string. He has a range of values, and wants a formula that will find any duplicated values in the range, and for each one which has more than one occurrence it should show the value itself and the number of occurrences.


yes thats what I meant, thank you kranky
 

edmundoab

Diamond Member
Apr 21, 2003
3,223
0
0
www.facebook.com
feedback greatly appreciated, we've been trying to get this up and running since the last 3 weeks I think sigh
so far only thanks to powerengineer, at least one column works, but its gonna be one hell of a spreadsheet if I use that for 1 year of data

 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |