Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
KK KK is offline
external usenet poster
 
Posts: 12
Default changing integers in a list

Hello,

I have a list of integer numbers in a single column. They are in no
particular order, and I cannot sort them (it would upset the rest of the
spreadsheet). Some of the integers are repeated more than once, & I want to
increase the repeats by 1, then 2, 3 ... so that I end up with a list of
unique integers. So for example if I have 5,27,21,5,33,5,5 I would end up
with 5,27,21,6,33,7,8.

I've been studying the Match, & other Lookup functions, but am unclear about
the best approach.

Hope this makes sense ?

Thanks

K


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 13
Default changing integers in a list

Hi,

You could try this:

=A1*100+COUNTIF(A1:$A$9,A1)

(data e.g. in A1:A9)

If you multiply the original figure by 100 you allow enough duplicates
and you avoid that a modified figure matches another number i.e. if
your duplicate is "5" and you append "3" you might have a number "53"
already in your list.

Regards,

Hans

KK schrieb:

Hello,

I have a list of integer numbers in a single column. They are in no
particular order, and I cannot sort them (it would upset the rest of the
spreadsheet). Some of the integers are repeated more than once, & I want to
increase the repeats by 1, then 2, 3 ... so that I end up with a list of
unique integers. So for example if I have 5,27,21,5,33,5,5 I would end up
with 5,27,21,6,33,7,8.

I've been studying the Match, & other Lookup functions, but am unclear about
the best approach.

Hope this makes sense ?

Thanks

K


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,718
Default changing integers in a list

Let's say your data from A1:A7

In B1 =IF(COUNTIF($A$1:A1,A1)=1,A1,$A$1+COUNTIF($A$1:A1, $A$1)-1)

Copy as far as needed



"KK" wrote:

Hello,

I have a list of integer numbers in a single column. They are in no
particular order, and I cannot sort them (it would upset the rest of the
spreadsheet). Some of the integers are repeated more than once, & I want to
increase the repeats by 1, then 2, 3 ... so that I end up with a list of
unique integers. So for example if I have 5,27,21,5,33,5,5 I would end up
with 5,27,21,6,33,7,8.

I've been studying the Match, & other Lookup functions, but am unclear about
the best approach.

Hope this makes sense ?

Thanks

K



  #4   Report Post  
Posted to microsoft.public.excel.newusers
KK KK is offline
external usenet poster
 
Posts: 12
Default changing integers in a list - THANKS

Thanks, this is very helpful - I'd not met the COUNTIF function.

K


"KK" wrote in message
...
Hello,

I have a list of integer numbers in a single column. They are in no
particular order, and I cannot sort them (it would upset the rest of the
spreadsheet). Some of the integers are repeated more than once, & I want

to
increase the repeats by 1, then 2, 3 ... so that I end up with a list of
unique integers. So for example if I have 5,27,21,5,33,5,5 I would end up
with 5,27,21,6,33,7,8.

I've been studying the Match, & other Lookup functions, but am unclear

about
the best approach.

Hope this makes sense ?

Thanks

K




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
Changing cell value according to list value Ninjapowa Excel Discussion (Misc queries) 1 September 21st 06 05:54 PM
auto updating list Larry Excel Worksheet Functions 8 July 27th 06 01:59 PM
Changing the name of a list. comotoman Excel Discussion (Misc queries) 3 September 19th 05 03:44 PM
Changing the color of a list entry based on a tolerance Blink Excel Worksheet Functions 1 July 15th 05 05:18 PM
Need to find oldest date in ever changing list. Alan Anderson via OfficeKB.com Excel Worksheet Functions 5 February 20th 05 04:09 AM


All times are GMT +1. The time now is 10:46 PM.

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"