Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 304
Default Is this posible to do?

Row A has the following:
East
East
East
<-blank cell
East
East
<-blank cell
South
South
<-blank cell
South
<-blank cell
West
West
West
West
<-blank cell
West
<-blank cell
<-blank cell
West
West

I would like to copy "East" all the way down to the last East in the Row,
then inset a cell and type "East Total" and do the same for South and West.
The data changes from day to day. Can this be done? Here is the end result:
East
East
East
East<-was a blank cell
East
East
East<-was a blank cell
East Total
South
South
South<-was a blank cell
South
South<-was a blank cell
South
West
West
West
West
West<-was a blank cell
West
West<-was a blank cell
West<-was a blank cell
West
West
West Total
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Is this posible to do?

I'd use one of these techniques from Debra Dalgleish's site:
http://contextures.com/xlDataEntry02.html

Then I'd add headers and use data|subtotals to get the subtotals.

(or maybe add headers and use a pivottable)


pgarcia wrote:

Row A has the following:
East
East
East
<-blank cell
East
East
<-blank cell
South
South
<-blank cell
South
<-blank cell
West
West
West
West
<-blank cell
West
<-blank cell
<-blank cell
West
West

I would like to copy "East" all the way down to the last East in the Row,
then inset a cell and type "East Total" and do the same for South and West.
The data changes from day to day. Can this be done? Here is the end result:
East
East
East
East<-was a blank cell
East
East
East<-was a blank cell
East Total
South
South
South<-was a blank cell
South
South<-was a blank cell
South
West
West
West
West
West<-was a blank cell
West
West<-was a blank cell
West<-was a blank cell
West
West
West Total


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 304
Default Is this posible to do?

I used it and works fine. However, when it gets down to the last row with
data, it does not stop. I keep going on for another 2000 to 3000 lines. Do
you now how to make it stop at a cretin point?

"Dave Peterson" wrote:

I'd use one of these techniques from Debra Dalgleish's site:
http://contextures.com/xlDataEntry02.html

Then I'd add headers and use data|subtotals to get the subtotals.

(or maybe add headers and use a pivottable)


pgarcia wrote:

Row A has the following:
East
East
East
<-blank cell
East
East
<-blank cell
South
South
<-blank cell
South
<-blank cell
West
West
West
West
<-blank cell
West
<-blank cell
<-blank cell
West
West

I would like to copy "East" all the way down to the last East in the Row,
then inset a cell and type "East Total" and do the same for South and West.
The data changes from day to day. Can this be done? Here is the end result:
East
East
East
East<-was a blank cell
East
East
East<-was a blank cell
East Total
South
South
South<-was a blank cell
South
South<-was a blank cell
South
West
West
West
West
West<-was a blank cell
West
West<-was a blank cell
West<-was a blank cell
West
West
West Total


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Is this posible to do?

Did you use the manual approach or the code approach?

If you used the manual approach, you select the range to start.

If you used the macro, then it uses what excel is the row for the last used
cell.

Maybe it's time to visit Debra Dalgleish's site again:
http://contextures.com/xlfaqApp.html#Unused

pgarcia wrote:

I used it and works fine. However, when it gets down to the last row with
data, it does not stop. I keep going on for another 2000 to 3000 lines. Do
you now how to make it stop at a cretin point?

"Dave Peterson" wrote:

I'd use one of these techniques from Debra Dalgleish's site:
http://contextures.com/xlDataEntry02.html

Then I'd add headers and use data|subtotals to get the subtotals.

(or maybe add headers and use a pivottable)


pgarcia wrote:

Row A has the following:
East
East
East
<-blank cell
East
East
<-blank cell
South
South
<-blank cell
South
<-blank cell
West
West
West
West
<-blank cell
West
<-blank cell
<-blank cell
West
West

I would like to copy "East" all the way down to the last East in the Row,
then inset a cell and type "East Total" and do the same for South and West.
The data changes from day to day. Can this be done? Here is the end result:
East
East
East
East<-was a blank cell
East
East
East<-was a blank cell
East Total
South
South
South<-was a blank cell
South
South<-was a blank cell
South
West
West
West
West
West<-was a blank cell
West
West<-was a blank cell
West<-was a blank cell
West
West
West Total


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 304
Default Is this posible to do?

Thanks, but I'm not sure what it happing here. Oh, yes I'm using the VB code.
That's ok, I have a work around. Thanks again. I will be check out that site
more offiten now.

"Dave Peterson" wrote:

Did you use the manual approach or the code approach?

If you used the manual approach, you select the range to start.

If you used the macro, then it uses what excel is the row for the last used
cell.

Maybe it's time to visit Debra Dalgleish's site again:
http://contextures.com/xlfaqApp.html#Unused

pgarcia wrote:

I used it and works fine. However, when it gets down to the last row with
data, it does not stop. I keep going on for another 2000 to 3000 lines. Do
you now how to make it stop at a cretin point?

"Dave Peterson" wrote:

I'd use one of these techniques from Debra Dalgleish's site:
http://contextures.com/xlDataEntry02.html

Then I'd add headers and use data|subtotals to get the subtotals.

(or maybe add headers and use a pivottable)


pgarcia wrote:

Row A has the following:
East
East
East
<-blank cell
East
East
<-blank cell
South
South
<-blank cell
South
<-blank cell
West
West
West
West
<-blank cell
West
<-blank cell
<-blank cell
West
West

I would like to copy "East" all the way down to the last East in the Row,
then inset a cell and type "East Total" and do the same for South and West.
The data changes from day to day. Can this be done? Here is the end result:
East
East
East
East<-was a blank cell
East
East
East<-was a blank cell
East Total
South
South
South<-was a blank cell
South
South<-was a blank cell
South
West
West
West
West
West<-was a blank cell
West
West<-was a blank cell
West<-was a blank cell
West
West
West Total

--

Dave Peterson


--

Dave Peterson

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
is it posible to have a formula for factorial via vba code? thread Excel Worksheet Functions 4 August 29th 14 11:02 AM
Posible IF formula Hanah New Users to Excel 2 August 11th 08 06:01 PM
Auto Maximize posible? Mike Excel Discussion (Misc queries) 1 October 16th 07 02:38 PM
It's posible to change security level from VBA? jose luis Excel Programming 2 September 15th 04 05:36 PM
Its posible to insert data... Ricardo Guzmán Excel Programming 2 September 10th 04 07:21 AM


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