Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Insert a value based on unique valuse in a row

I have done some searching for this to no avail. Here is an example
of what I need:

A B C

1 data
1 data
1 data
1 data 1
2 data
2 data
2 data 1
3 data
3 data 1
4 data
4 data
4 data 1



I want some sort of macro or formula to insert the 1 in column c, for
the last of occurence of the number in column A.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Insert a value based on unique valuse in a row

Hi John
one way: if your numbers are sorted ascending (as your example
suggests) enter the following in C1:
=IF(A1<A2,1,"")
copy down
HTH
Frank

John Fevens wrote:
I have done some searching for this to no avail. Here is an example
of what I need:

A B C

1 data
1 data
1 data
1 data 1
2 data
2 data
2 data 1
3 data
3 data 1
4 data
4 data
4 data 1



I want some sort of macro or formula to insert the 1 in column c, for
the last of occurence of the number in column A.

Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Insert a value based on unique valuse in a row

how about using a formula

in C1

=if(A2<A1,1,"")

then drag fill down the column.

--
Regards,
Tom Ogilvy

"John Fevens" wrote in message
om...
I have done some searching for this to no avail. Here is an example
of what I need:

A B C

1 data
1 data
1 data
1 data 1
2 data
2 data
2 data 1
3 data
3 data 1
4 data
4 data
4 data 1



I want some sort of macro or formula to insert the 1 in column c, for
the last of occurence of the number in column A.

Any suggestions?



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
Move and reset valuse using a command Button Chris Excel Discussion (Misc queries) 0 December 29th 09 11:54 PM
Finding descrete valuse Steve M Excel Worksheet Functions 3 October 25th 06 04:49 PM
How to find valuse in cells. kodzirko Excel Worksheet Functions 1 July 6th 06 12:27 PM
excluding valuse from an average toot033 Excel Discussion (Misc queries) 2 April 11th 06 01:41 PM
Selecting valuse from a table Dave Excel Discussion (Misc queries) 2 September 16th 05 05:28 AM


All times are GMT +1. The time now is 06:44 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"