In cells C2, use:
=IF(B2<>B1,"start",IF(B2<>B3,"end",""))

then copy the formula down.

hope this helps,

Paul



________________________________
From: Geo <gco...@gmail.com>
To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com>
Sent: Tuesday, April 21, 2009 11:56:32 AM
Subject: $$Excel-Macros$$ Show the start and end of groups of cells


I have data like this:

part#    location
1    1B-1-A-01
5    1B-1-A-01
6    1B-1-A-01
14    1B-1-A-02
12    1B-1-A-02
15    1B-1-A-03
83    1B-1-A-03
16    1B-1-A-03
22    1B-1-A-03

In column C, I would like to see this:

part#    location    Start/End
1    1B-1-A-01    start
5    1B-1-A-01
6    1B-1-A-01    end
14    1B-1-A-02    start
12    1B-1-A-02    end
15    1B-1-A-03    start
83    1B-1-A-03
16    1B-1-A-03
22    1B-1-A-03    end

So for each beginning of the location, I need C to say 'start' and at
the end of this group of data, I'd like it to say 'end'.

Thanks ofr your help.



--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to