Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-06-2005, 05:53 AM
timdee timdee is offline
Registered User
 
Join Date: 06 Jul 2005
Posts: 4
timdee is becoming part of the community
Two quick questions

Please Register to Remove these Ads

Firstly, I am using Excel 97 SR-2. My questions are:

If I enter a date in a cell then drag the fill handle down the column it increased by one day each time. Is it possible to create 2 rows with the same date, then the next two increase by one etc. If so, how do I do it?

Secondly, if there is a formula in a cell but no data for it to use it displays ####. Is it possible to stop this until data is entered?
Regards,
Tim.
Reply With Quote
  #2  
Old 07-06-2005, 07:05 AM
Bob Phillips
Guest
 
Posts: n/a
Re: Two quick questions

Tim,

Put this formula in A2, and copy down

=IF(MOD(ROW(),2)=0,A1,A1+1)

--
HTH

Bob Phillips

"timdee" <timdee.1rqqai_1120640719.7833@excelforum-nospam.com> wrote in
message news:timdee.1rqqai_1120640719.7833@excelforum-nospam.com...
>
> Firstly, I am using Excel 97 SR-2. My questions are:
>
> If I enter a date in a cell then drag the fill handle down the column
> it increased by one day each time. Is it possible to create 2 rows
> with the same date, then the next two increase by one etc. If so, how
> do I do it?
>
> Secondly, if there is a formula in a cell but no data for it to use it
> displays ####. Is it possible to stop this until data is entered?
> Regards,
> Tim.
>
>
> --
> timdee
> ------------------------------------------------------------------------
> timdee's Profile:

http://www.excelforum.com/member.php...o&userid=24943
> View this thread: http://www.excelforum.com/showthread...hreadid=384795
>



Reply With Quote
  #3  
Old 07-06-2005, 07:27 AM
timdee timdee is offline
Registered User
 
Join Date: 06 Jul 2005
Posts: 4
timdee is becoming part of the community
Brilliant, thanks Bob.
Reply With Quote
  #4  
Old 07-06-2005, 08:05 AM
Max
Guest
 
Posts: n/a
Re: Two quick questions

> > If I enter a date in a cell then drag the fill handle down the column
> > it increased by one day each time. Is it possible to create 2 rows
> > with the same date, then the next two increase by one etc. If so, how
> > do I do it?


Another slant to the 1st Q (above) to play with ..

With an initial date in A1, say: 01-Jul-2005

Put in say, B1:
=OFFSET(Sheet1!$A$1,INT((ROWS($A$1:A1)-1)/2),)

Format B1 as date, and copy down

This will yield in col B:

01-Jul-2005
01-Jul-2005
02-Jul-2005
02-Jul-2005
03-Jul-2005
03-Jul-2005
04-Jul-2005
04-Jul-2005
05-Jul-2005
05-Jul-2005
etc

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----


Reply With Quote
  #5  
Old 07-06-2005, 08:05 AM
Max
Guest
 
Posts: n/a
Re: Two quick questions

Some corrections, sorry:

Lines

> With an initial date in A1, say: 01-Jul-2005
>
> Put in say, B1:
> =OFFSET(Sheet1!$A$1,INT((ROWS($A$1:A1)-1)/2),)


should read as:

With running dates filled in A1 down:

01-Jul-2005
02-Jul-2005
03-Jul-2005
04-Jul-2005
05-Jul-2005
06-Jul-2005
etc

Put in say, B1:
=OFFSET($A$1,INT((ROWS($A$1:A1)-1)/2),)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----


Reply With Quote
  #6  
Old 07-06-2005, 08:05 AM
Max
Guest
 
Posts: n/a
Re: Two quick questions

"timdee" wrote:
> .. Secondly, if there is a formula in a cell but no data for it to use it
> displays ####. Is it possible to stop this until data is entered?


Try something along these lines:

If C1 contains the formula, say: =A1/B1
try instead in C1: =IF(OR(A1="",B1=""),"",A1/B1)

The simple error trap: =IF(OR(A1="",B1=""),"", ... )
will help ensure that C1 returns a blank: "" instead of computing A1/B1
"prematurely", until values are entered in both A1 and B1

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----


Reply With Quote
  #7  
Old 07-06-2005, 12:01 PM
timdee timdee is offline
Registered User
 
Join Date: 06 Jul 2005
Posts: 4
timdee is becoming part of the community
Thanks Guys. Bob, is there a simple way of inserting an occasional 3rd row with the same date?
Reply With Quote
  #8  
Old 07-06-2005, 02:05 PM
Bob Phillips
Guest
 
Posts: n/a
Re: Two quick questions

If you mean 3 rows of the same date, then use

=IF(MOD(ROW(),3)<>1,A1,A1+1)

and copy down as before

--
HTH

Bob Phillips

"timdee" <timdee.1rr73j_1120662618.3565@excelforum-nospam.com> wrote in
message news:timdee.1rr73j_1120662618.3565@excelforum-nospam.com...
>
> Thanks Guys. Bob, is there a simple way of inserting an occasional 3rd
> row with the same date?
>
>
> --
> timdee
> ------------------------------------------------------------------------
> timdee's Profile:

http://www.excelforum.com/member.php...o&userid=24943
> View this thread: http://www.excelforum.com/showthread...hreadid=384795
>



Reply With Quote
  #9  
Old 07-07-2005, 05:14 AM
timdee timdee is offline
Registered User
 
Join Date: 06 Jul 2005
Posts: 4
timdee is becoming part of the community
Bob, I am most grateful for your help. Just to clarify what I am trying to achieve. Each day I usually have 2 rows of data to enter, but just occasionally there will be a third row required for a day, then I will revert back to two rows again. I am not sure if this is possible and I don't want to take up any of your valuable time. but would appreciate your advice.
Reply With Quote
  #10  
Old 07-07-2005, 07:05 AM
Bob Phillips
Guest
 
Posts: n/a
Re: Two quick questions

I would use another cell to toggle it, like this

=IF(MOD(ROW(),IF(H1<>"",3,2))<>1,A1,A1+1)

and when you want it for a third row, put any value in H1, when you want
every second, clear H1


--
HTH

Bob Phillips

"timdee" <timdee.1rskyd_1120727110.4079@excelforum-nospam.com> wrote in
message news:timdee.1rskyd_1120727110.4079@excelforum-nospam.com...
>
> Bob, I am most grateful for your help. Just to clarify what I am trying
> to achieve. Each day I usually have 2 rows of data to enter, but just
> occasionally there will be a third row required for a day, then I will
> revert back to two rows again. I am not sure if this is possible and I
> don't want to take up any of your valuable time. but would appreciate
> your advice.
>
>
> --
> timdee
> ------------------------------------------------------------------------
> timdee's Profile:

http://www.excelforum.com/member.php...o&userid=24943
> View this thread: http://www.excelforum.com/showthread...hreadid=384795
>



Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump