Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Ignore duplicates

The following formula is in €œK€ and will return the value in €œA€ when the
conditions are met.

=INDEX(INDIRECT("$A$2:$A$5000"),MATCH(SMALL($H$2:$ H$5000,ROWS($IV$1:IV3)),$H$2:$H$5000,0))

Because €œA€ contains duplicate values these are returned to €œK€
I want €œK€ to only return the same value once

What is the best way to achieve this?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Ignore duplicates


=IF(COUNTIF($A$2:$A3,A3)=1,INDEX(INDIRECT("$A$2:$A $5000"),MATCH(SMALL($H$2:$H$5000,ROWS($IV$1:IV3)), $H$2:$H$5000,0)),"")

--
HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
The following formula is in "K" and will return the value in "A" when the
conditions are met.

=INDEX(INDIRECT("$A$2:$A$5000"),MATCH(SMALL($H$2:$ H$5000,ROWS($IV$1:IV3)),$H$2:$H$5000,0))

Because "A" contains duplicate values these are returned to "K"
I want "K" to only return the same value once

What is the best way to achieve this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Ignore duplicates

Hi Bernie Deitrick

Your solution returned intermittent results, Records that should been
returned did not return.

"Bernie Deitrick" wrote:


=IF(COUNTIF($A$2:$A3,A3)=1,INDEX(INDIRECT("$A$2:$A $5000"),MATCH(SMALL($H$2:$H$5000,ROWS($IV$1:IV3)), $H$2:$H$5000,0)),"")

--
HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
The following formula is in "K" and will return the value in "A" when the
conditions are met.

=INDEX(INDIRECT("$A$2:$A$5000"),MATCH(SMALL($H$2:$ H$5000,ROWS($IV$1:IV3)),$H$2:$H$5000,0))

Because "A" contains duplicate values these are returned to "K"
I want "K" to only return the same value once

What is the best way to achieve this?



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Ignore duplicates

Post a 4 row example of your data - say, rows two to five - including one
set of duplicates, and indicate what you are currently getting with your
formula and what you expect the formula to return.

Bernie


"Gotroots" wrote in message
...
Hi Bernie Deitrick

Your solution returned intermittent results, Records that should been
returned did not return.

"Bernie Deitrick" wrote:


=IF(COUNTIF($A$2:$A3,A3)=1,INDEX(INDIRECT("$A$2:$A $5000"),MATCH(SMALL($H$2:$H$5000,ROWS($IV$1:IV3)), $H$2:$H$5000,0)),"")

--
HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
The following formula is in "K" and will return the value in "A" when
the
conditions are met.

=INDEX(INDIRECT("$A$2:$A$5000"),MATCH(SMALL($H$2:$ H$5000,ROWS($IV$1:IV3)),$H$2:$H$5000,0))

Because "A" contains duplicate values these are returned to "K"
I want "K" to only return the same value once

What is the best way to achieve this?



.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Ignore duplicates

Here is a breakdown of the results I am getting

A3:A14 are entered values

A3 = apples
A4 = apples
A5 = pears
A6 = oranges
A7 = apples
A8 = grapefruit
A9 = grapes
A10 = lemons
A11 = bananas
A12 = bananas
A13 = kiwi
A14 = plums

B3:B14 are the result of a formula

B3 = no record
B4 = no record
B5 =
B6 =
B7 = no record
B8 =
B9 = no record
B10 = no record
B11 = no record
B12 = no record
B13 =
B14 = no record

C3:C14 are the result of a formula

C3 = 3
C4 = 4
C5 =
C6 =
C7 = 7
C8 =
C9 = 9
C10 = 10
C11 = 11
C12 = 12
C13 =
C14 = 14

D3 contains the formula;
=IF(COUNTIF($A$3:$A42,A4)=1,INDEX(INDIRECT("$A$3:$ A$5000"),MATCH(SMALL($C$3:$C$5000,ROWS($IV$1:IV1)) ,$C$3:$C$5000,0)),"")

D3:D14 contains the above formula fill down

D3 =
D4 = apples
D5 = apples
D6 =
D7 = lemons
D8 = bananas
D9 = bananas
D10 =
D11 =
D12 = #NUM!
D13 = #NUM!
D14 =

What the formula should have returned is as follows:

D3 = apples
D4 = grapes
D5 = lemons
D6 = bananas
D7 = plums
D8 =
D9 =
D10 =
D11 =
D12 =
D13 =
D14 =


"Bernie Deitrick" wrote:

Post a 4 row example of your data - say, rows two to five - including one
set of duplicates, and indicate what you are currently getting with your
formula and what you expect the formula to return.

Bernie


"Gotroots" wrote in message
...
Hi Bernie Deitrick

Your solution returned intermittent results, Records that should been
returned did not return.

"Bernie Deitrick" wrote:


=IF(COUNTIF($A$2:$A3,A3)=1,INDEX(INDIRECT("$A$2:$A $5000"),MATCH(SMALL($H$2:$H$5000,ROWS($IV$1:IV3)), $H$2:$H$5000,0)),"")

--
HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
The following formula is in "K" and will return the value in "A" when
the
conditions are met.

=INDEX(INDIRECT("$A$2:$A$5000"),MATCH(SMALL($H$2:$ H$5000,ROWS($IV$1:IV3)),$H$2:$H$5000,0))

Because "A" contains duplicate values these are returned to "K"
I want "K" to only return the same value once

What is the best way to achieve this?



.


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Condensing a list with duplicates to a list with non-duplicates Nuclear Excel Worksheet Functions 2 July 29th 08 08:03 PM
Duplicates in excel that aren't 100% DUPLICATES ... [email protected] Excel Discussion (Misc queries) 4 May 2nd 08 06:43 PM
Find missing numbers in list, ignore duplicates Galceran Excel Discussion (Misc queries) 0 October 30th 07 05:05 PM
ignore #N/A in a sum? Todd Excel Worksheet Functions 3 September 5th 06 10:05 PM
LOOKUP multiple results but ignore duplicates. vane0326 Excel Worksheet Functions 10 May 31st 06 06:49 PM


All times are GMT +1. The time now is 08:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright İ2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"