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 Deifine range ignoring duplicates

In Define Name in Excel 2007 I want to create a formula for A:A that excludes
duplicates in the range.

How do you create this formula.


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

You could use a column of formulas that would extract and gather together the unique values from
column A, and reference those values using a dynamic named range.

HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
In Define Name in Excel 2007 I want to create a formula for A:A that excludes
duplicates in the range.

How do you create this formula.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Deifine range ignoring duplicates

Put this in one column over:
=IF(COUNTIF($A$1:A1,A1)=1,A1,"")

Put this one column over from that; enter with ctrl+shift+enter:
=IF(ROW()-ROW($C$1:$C$20)+1ROWS(B1:B20)-COUNTBLANK(B1:B20),"",INDIRECT(ADDRESS(SMALL((IF(B 1:B20<"",ROW(B1:B20),ROW()+ROWS(B1:B20))),ROW()-ROW($C$1:$C$20)+1),COLUMN(B1:B20),4)))

HTH,
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Bernie Deitrick" wrote:

You could use a column of formulas that would extract and gather together the unique values from
column A, and reference those values using a dynamic named range.

HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
In Define Name in Excel 2007 I want to create a formula for A:A that excludes
duplicates in the range.

How do you create this formula.




.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Deifine range ignoring duplicates

Hi

Tested out your solution and here is how i got on:

=IF(COUNTIF($A$1:A1,A1)=1,A1,"")


this formula works by removing the duplicates

=IF(ROW()-ROW($C$1:$C$20)+1ROWS(B1:B20)-COUNTBLANK(B1:B20),"",INDIRECT(ADDRESS(SMALL((IF(B 1:B20<"",ROW(B1:B20),ROW()+ROWS(B1:B20))),ROW()-ROW($C$1:$C$20)+1),COLUMN(B1:B20),4)))


Some records were not returned with this formula, don't know why.





"ryguy7272" wrote:

Put this in one column over:
=IF(COUNTIF($A$1:A1,A1)=1,A1,"")

Put this one column over from that; enter with ctrl+shift+enter:
=IF(ROW()-ROW($C$1:$C$20)+1ROWS(B1:B20)-COUNTBLANK(B1:B20),"",INDIRECT(ADDRESS(SMALL((IF(B 1:B20<"",ROW(B1:B20),ROW()+ROWS(B1:B20))),ROW()-ROW($C$1:$C$20)+1),COLUMN(B1:B20),4)))

HTH,
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Bernie Deitrick" wrote:

You could use a column of formulas that would extract and gather together the unique values from
column A, and reference those values using a dynamic named range.

HTH,
Bernie
MS Excel MVP


"Gotroots" wrote in message
...
In Define Name in Excel 2007 I want to create a formula for A:A that excludes
duplicates in the range.

How do you create this formula.




.

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
counting values ignoring duplicates matt3542 Excel Worksheet Functions 12 June 23rd 09 03:10 AM
Count, ignoring duplicates PA Excel Worksheet Functions 7 November 24th 08 04:31 PM
Filtering out duplicates while ignoring 1 row Allie Excel Discussion (Misc queries) 0 September 17th 08 03:14 PM
Ignoring #N/A in an Autosum range Jaye Excel Worksheet Functions 6 July 9th 07 09:35 PM
Counting Names in a Column, Ignoring Duplicates Bruce Excel Discussion (Misc queries) 8 March 18th 07 01:01 PM


All times are GMT +1. The time now is 06:22 AM.

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

About Us

"It's about Microsoft Excel"