#1   Report Post  
donone
 
Posts: n/a
Default finding addresses


I have tried for several hours and failed.
I want, say, A1 to contain 1.
I want A2 to self generate its value as the cell above +1
etc. etc. but of course NOT using A1+1 because...

...if I delete one of the numbers in the sequence, I want that cell to
become blank and all the remaining cells below to regenerate their
numbers to remain sequential regardless of the blank or several
blanks.
One further limit is that if the renumbering hits a red cell (or
several) then it misses them and continues below.

I have tried Address(), row(), column() etc in various combinations to
no avail.

I would be pleased if someone could solve this for me.

Thanks


--
donone
------------------------------------------------------------------------
donone's Profile: http://www.excelforum.com/member.php...o&userid=27237
View this thread: http://www.excelforum.com/showthread...hreadid=467475

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default


Try using a variation of this:

A2: =MAX($A$1:OFFSET(A2,-1,,,))+1

Copy that cell anywhere in column A. It will ignore blanks and text
when incrementing.

Does that help?
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=467475

  #3   Report Post  
donone
 
Posts: n/a
Default


Thanks for looking at this Ron

I have tried it. A1=1 then paste to A2 it gives 2, I then have to copy
and paste to all other cells and it generates the sequence. Part one OK
thanks.

The requirement (my para 2) to re-generate if one of the cells is
deleted does not happen. Nor does it skip cells containing a colour.
These two are the main aims.

Once the numbers are in, the above is required to happen automatically
as I delete a cell, they renumber below that point.

Regards


--
donone
------------------------------------------------------------------------
donone's Profile: http://www.excelforum.com/member.php...o&userid=27237
View this thread: http://www.excelforum.com/showthread...hreadid=467475

  #4   Report Post  
donone
 
Posts: n/a
Default


Ron
If you are still around I offer my sincere apology. It does work as you
say.

I think I pasted in the wrong place then corrected it and messed the
rest up for further tests.

Your solution is elegant.

May I ask one further question? It does jump over text, but is it
possible to jump a coloured cell?

Thank you
Donone


--
donone
------------------------------------------------------------------------
donone's Profile: http://www.excelforum.com/member.php...o&userid=27237
View this thread: http://www.excelforum.com/showthread...hreadid=467475

  #5   Report Post  
Ron Coderre
 
Posts: n/a
Default


There are no built-in Excel functions that return cells' background
colors. You would need to create a custom function to account for
those. It can be done but why can't the cells be flagged in some
value-based way, instead of using color. Perhaps with a helper column
(like an X in an adjacent column)? That way you could remain within
the realm of Excel's native functions and functionality: Flag rows with
an X and conditionally format impacted cells so they have a fill color.

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=467475



  #6   Report Post  
donone
 
Posts: n/a
Default


Thank you Ron
I believe that will indeed solve my problem and thank you for your
help. I guess I got fixed in my ways about colour in the cell.
Regards :)


--
donone
------------------------------------------------------------------------
donone's Profile: http://www.excelforum.com/member.php...o&userid=27237
View this thread: http://www.excelforum.com/showthread...hreadid=467475

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
Transposing addresses Big-D Excel Discussion (Misc queries) 1 August 4th 05 09:32 PM
Copy Excel email addresses to GroupWise Sherry Excel Discussion (Misc queries) 0 July 14th 05 08:20 PM
How can I prevent email addresses from automatically hyperlinking. pistoff Excel Worksheet Functions 2 June 10th 05 11:36 PM
Removing house numbers from addresses dalymjl Excel Worksheet Functions 3 April 24th 05 08:00 AM
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. ragman10 Excel Discussion (Misc queries) 1 December 13th 04 11:52 PM


All times are GMT +1. The time now is 11:02 PM.

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"