PC Review


Reply
Thread Tools Rate Thread

Auto insert a row or cell

 
 
excel2000
Guest
Posts: n/a
 
      23rd Oct 2003
I'm entering numbers under a colum, I need the total sum of the colum;
But after I enter the last number 221 and press enter it needs to skip
with a blank row or cell ? but allways adding the total sum at the last
cell.
After the 221 and press enter, the cursor will go to the next cell
below, which the total sum is located; I need a blank cell so it will
skip to the next cell where I will enter the next number.

Thank you very much.
JA
ex:
123
222
111
221
---> Here is where I need the blank row allways
677 This is the total sum

File Attached: http://www.excelforum.com/attachment.php?postid=329397 (book1.xls)

------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      24th Oct 2003
excel2000,

I didn't open your attached workbook - they are rarely if ever
needed - but you can use the code below to do that. Right click the
sheet tab, select "View Code" and paste this code into the window that
appears.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_Change(ByVal Target As Range)
If Left(Target(2).Formula, 5) = "=SUM(" Then Target(2).Insert (xlDown)
End Sub


"excel2000" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm entering numbers under a colum, I need the total sum of the

colum;
> But after I enter the last number 221 and press enter it needs to

skip
> with a blank row or cell ? but allways adding the total sum at the

last
> cell.
> After the 221 and press enter, the cursor will go to the next cell
> below, which the total sum is located; I need a blank cell so it

will
> skip to the next cell where I will enter the next number.
>
> Thank you very much.
> JA
> ex:
> 123
> 222
> 111
> 221
> ---> Here is where I need the blank row allways
> 677 This is the total sum
>
> File Attached:

http://www.excelforum.com/attachment.php?postid=329397 (book1.xls)
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from

http://www.ExcelForum.com/
>



 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      24th Oct 2003
I should have noted that this requires that you have the option to
auto extend lists and formulas turned on (Excel 2000 and up).

HTH,
Bernie
MS Excel MVP

"Bernie Deitrick" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> excel2000,
>
> I didn't open your attached workbook - they are rarely if ever
> needed - but you can use the code below to do that. Right click the
> sheet tab, select "View Code" and paste this code into the window

that
> appears.
>
> HTH,
> Bernie
> MS Excel MVP
>
> Private Sub Worksheet_Change(ByVal Target As Range)
> If Left(Target(2).Formula, 5) = "=SUM(" Then Target(2).Insert

(xlDown)
> End Sub
>
>
> "excel2000" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I'm entering numbers under a colum, I need the total sum of the

> colum;
> > But after I enter the last number 221 and press enter it needs to

> skip
> > with a blank row or cell ? but allways adding the total sum at the

> last
> > cell.
> > After the 221 and press enter, the cursor will go to the next cell
> > below, which the total sum is located; I need a blank cell so it

> will
> > skip to the next cell where I will enter the next number.
> >
> > Thank you very much.
> > JA
> > ex:
> > 123
> > 222
> > 111
> > 221
> > ---> Here is where I need the blank row allways
> > 677 This is the total sum
> >
> > File Attached:

> http://www.excelforum.com/attachment.php?postid=329397 (book1.xls)
> >
> > ------------------------------------------------
> > ~~ Message posted from http://www.ExcelTip.com/
> > ~~ View and post usenet messages directly from

> http://www.ExcelForum.com/
> >

>
>



 
Reply With Quote
 
immanuel
Guest
Posts: n/a
 
      28th Oct 2003
Consider evaluating XL2003. The list functionality is greatly improved and
includes a feature akin to what you describe.

/i.

"excel2000" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm entering numbers under a colum, I need the total sum of the colum;
> But after I enter the last number 221 and press enter it needs to skip
> with a blank row or cell ? but allways adding the total sum at the last
> cell.
> After the 221 and press enter, the cursor will go to the next cell
> below, which the total sum is located; I need a blank cell so it will
> skip to the next cell where I will enter the next number.
>
> Thank you very much.
> JA
> ex:
> 123
> 222
> 111
> 221
> ---> Here is where I need the blank row allways
> 677 This is the total sum
>
> File Attached: http://www.excelforum.com/attachment.php?postid=329397

(book1.xls)
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto insert date in one cell when another is changed Jim Microsoft Excel Worksheet Functions 2 24th May 2011 01:23 PM
Can I auto insert a worksheet when I insert a value in a cell. =?Utf-8?B?aWFpbmM=?= Microsoft Excel Worksheet Functions 0 27th Apr 2006 08:37 AM
Insert cell/format/text/fontsize and auto insert into header? =?Utf-8?B?VW5mdXJsdGhlZmxhZw==?= Microsoft Excel Programming 2 3rd Nov 2004 05:39 PM
Auto Insert of Comments for Cell Buck Turgidson Microsoft Excel Discussion 5 25th Jun 2004 08:31 PM
Auto insert tab name in cell Norm Microsoft Excel Misc 3 9th Jan 2004 09:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:39 PM.