PC Review


Reply
Thread Tools Rate Thread

Dragging Down a Formula

 
 
JBoyer
Guest
Posts: n/a
 
      2nd Jul 2008
Now my actually case is more complicated than this, but I think if someone
explains this to me, I'll be fine.

say i have a formula in cell b1 that is =a1*2
now in b2 i would have =a6*2
and in b3 i would have =a11*2

and continue to increase the cell value by five.

Can i do this be just dragging down the corner rather than entering them
manually?
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      2nd Jul 2008
In Cell B1, enter a formula like

=INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)*2

Note that the B1 and $B$1 are strictly needed - they should be the address
of the first cell that this is entered in, so that you don't have to limit
where you put the formula, and so that you can insert rows above and still
have the formula work.

This is the part that steps through a range by 5 rows everytime the formula
is copied down by one row

INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)
That becomes
INDEX($A$1:$A$1000,(1-1)*5+1,1)
INDEX($A$1:$A$1000,1,1)
or just A1

Copied down, you get

INDEX($A$1:$A$1000,(ROW(B2)-ROW($B$1))*5+1,1)
That becomes
INDEX($A$1:$A$1000,(2-1)*5+1,1)
INDEX($A$1:$A$1000,1*5+1,1)
INDEX($A$1:$A$1000,6,1)
or A6

etc.


HTH,
Bernie
MS Excel MVP


"JBoyer" <(E-Mail Removed)> wrote in message
news:A556AFDF-D566-4294-A736-(E-Mail Removed)...
> Now my actually case is more complicated than this, but I think if someone
> explains this to me, I'll be fine.
>
> say i have a formula in cell b1 that is =a1*2
> now in b2 i would have =a6*2
> and in b3 i would have =a11*2
>
> and continue to increase the cell value by five.
>
> Can i do this be just dragging down the corner rather than entering them
> manually?



 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      2nd Jul 2008
"Note that the B1 and $B$1 are strictly needed "

What I meant was that they AREN'T strictly needed....

Boy, my fingers just don't obey my mind sometime....

Bernie


"Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
news:%(E-Mail Removed)...
> In Cell B1, enter a formula like
>
> =INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)*2
>
> Note that the B1 and $B$1 are strictly needed - they should be the address
> of the first cell that this is entered in, so that you don't have to limit
> where you put the formula, and so that you can insert rows above and still
> have the formula work.
>
> This is the part that steps through a range by 5 rows everytime the
> formula is copied down by one row
>
> INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)
> That becomes
> INDEX($A$1:$A$1000,(1-1)*5+1,1)
> INDEX($A$1:$A$1000,1,1)
> or just A1
>
> Copied down, you get
>
> INDEX($A$1:$A$1000,(ROW(B2)-ROW($B$1))*5+1,1)
> That becomes
> INDEX($A$1:$A$1000,(2-1)*5+1,1)
> INDEX($A$1:$A$1000,1*5+1,1)
> INDEX($A$1:$A$1000,6,1)
> or A6
>
> etc.
>
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "JBoyer" <(E-Mail Removed)> wrote in message
> news:A556AFDF-D566-4294-A736-(E-Mail Removed)...
>> Now my actually case is more complicated than this, but I think if
>> someone
>> explains this to me, I'll be fine.
>>
>> say i have a formula in cell b1 that is =a1*2
>> now in b2 i would have =a6*2
>> and in b3 i would have =a11*2
>>
>> and continue to increase the cell value by five.
>>
>> Can i do this be just dragging down the corner rather than entering them
>> manually?

>
>



 
Reply With Quote
 
JBoyer
Guest
Posts: n/a
 
      2nd Jul 2008
I should have been more clear with my example, here is the formula I'm using
=IF(ISBLANK(F3:L3),"",SUM(IF(F3:L3<0,F3:L3,FALSE))). This formula is in cell
Z2.

Now in cell Z3 I want =IF(ISBLANK(F8:L8),"",SUM(IF(F8:L8<0,F8:L8,FALSE))).

"Bernie Deitrick" wrote:

> In Cell B1, enter a formula like
>
> =INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)*2
>
> Note that the B1 and $B$1 are strictly needed - they should be the address
> of the first cell that this is entered in, so that you don't have to limit
> where you put the formula, and so that you can insert rows above and still
> have the formula work.
>
> This is the part that steps through a range by 5 rows everytime the formula
> is copied down by one row
>
> INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)
> That becomes
> INDEX($A$1:$A$1000,(1-1)*5+1,1)
> INDEX($A$1:$A$1000,1,1)
> or just A1
>
> Copied down, you get
>
> INDEX($A$1:$A$1000,(ROW(B2)-ROW($B$1))*5+1,1)
> That becomes
> INDEX($A$1:$A$1000,(2-1)*5+1,1)
> INDEX($A$1:$A$1000,1*5+1,1)
> INDEX($A$1:$A$1000,6,1)
> or A6
>
> etc.
>
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "JBoyer" <(E-Mail Removed)> wrote in message
> news:A556AFDF-D566-4294-A736-(E-Mail Removed)...
> > Now my actually case is more complicated than this, but I think if someone
> > explains this to me, I'll be fine.
> >
> > say i have a formula in cell b1 that is =a1*2
> > now in b2 i would have =a6*2
> > and in b3 i would have =a11*2
> >
> > and continue to increase the cell value by five.
> >
> > Can i do this be just dragging down the corner rather than entering them
> > manually?

>
>
>

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      3rd Jul 2008
J,

In Z2, enter the formula

=IF(OFFSET($F$3,(ROW()-ROW())*5,0)="","",SUMIF(OFFSET($F$3:$L$3,(ROW()-ROW($Z$2))*5,0),"<0"))

and copy down.

HTH,
Bernie
MS Excel MVP


"JBoyer" <(E-Mail Removed)> wrote in message
news:C2295AB2-86CE-443C-8AB1-(E-Mail Removed)...
>I should have been more clear with my example, here is the formula I'm using
> =IF(ISBLANK(F3:L3),"",SUM(IF(F3:L3<0,F3:L3,FALSE))). This formula is in cell
> Z2.
>
> Now in cell Z3 I want =IF(ISBLANK(F8:L8),"",SUM(IF(F8:L8<0,F8:L8,FALSE))).
>
> "Bernie Deitrick" wrote:
>
>> In Cell B1, enter a formula like
>>
>> =INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)*2
>>
>> Note that the B1 and $B$1 are strictly needed - they should be the address
>> of the first cell that this is entered in, so that you don't have to limit
>> where you put the formula, and so that you can insert rows above and still
>> have the formula work.
>>
>> This is the part that steps through a range by 5 rows everytime the formula
>> is copied down by one row
>>
>> INDEX($A$1:$A$1000,(ROW(B1)-ROW($B$1))*5+1,1)
>> That becomes
>> INDEX($A$1:$A$1000,(1-1)*5+1,1)
>> INDEX($A$1:$A$1000,1,1)
>> or just A1
>>
>> Copied down, you get
>>
>> INDEX($A$1:$A$1000,(ROW(B2)-ROW($B$1))*5+1,1)
>> That becomes
>> INDEX($A$1:$A$1000,(2-1)*5+1,1)
>> INDEX($A$1:$A$1000,1*5+1,1)
>> INDEX($A$1:$A$1000,6,1)
>> or A6
>>
>> etc.
>>
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>>
>> "JBoyer" <(E-Mail Removed)> wrote in message
>> news:A556AFDF-D566-4294-A736-(E-Mail Removed)...
>> > Now my actually case is more complicated than this, but I think if someone
>> > explains this to me, I'll be fine.
>> >
>> > say i have a formula in cell b1 that is =a1*2
>> > now in b2 i would have =a6*2
>> > and in b3 i would have =a11*2
>> >
>> > and continue to increase the cell value by five.
>> >
>> > Can i do this be just dragging down the corner rather than entering them
>> > manually?

>>
>>
>>



 
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
Dragging a formula Sasikiran Microsoft Excel Misc 10 14th Mar 2009 02:58 PM
dragging my formula rodchar Microsoft Excel Misc 4 22nd Jul 2008 12:38 AM
dragging a formula =?Utf-8?B?UCBCYXRlcw==?= Microsoft Excel Misc 3 7th Aug 2005 09:37 PM
Dragging a Formula Jerry Spivey Microsoft Excel Discussion 2 27th Jul 2005 09:49 PM
dragging formula mary kay dougherty Microsoft Excel Misc 3 10th Oct 2003 11:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:06 PM.