Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Autofill column values in formulas

I can't get excel to autofill my formula correctly. I need it to refer to
every sixth cell on another sheet. Excel just chooses the number of cells I
click for autofill and increments the cell number by that much.

e.g., =if(isnumber(sheet2!c1)... then next row down is =if(...c7) and next
is c13, etc. the autofill pattern for the next cells is c4, c10, and c16. I
need it to be c19, c25, and c31. Selecting 6 cells doesnt work either, i.e.,
1,7,13,19,25,31 produces 7,13,19,25,31,37. How do I go about this?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Autofill column values in formulas

You may be able to use =indirect() or =index(), but you didn't share enough of
the formula to get a meaningful suggestion (from me anyway).

When I want this kind of increment in a formula, I'll do this...

I'll create a formula that builds a string that looks like the formula:

="=if(isnumber(sheet2!c"&(6*(row()-1)+1&")...."
This assumes that the formula is in row 1.
If the formula is in a different row, then I'd adjust that (6*(row()-1)+1 to a
different expression.

Then I'd drag this formula down.

If my formula that builds that string looks like it's the correct formula, then
I'll convert it to values.
(edit|copy followed by edit|paste special|values).

But the results are still just plain old strings (that look like formulas).

Next, I'd convert it to formulas.

Select the single column range.
Data|text to columns
Choose Fixed width, but don't have any delimiters.

Excel will see the results as those nice straight-forward formulas.

============
If you want to try this, but are having trouble, share your entire formula and
the cell that gets that first formula.



NOV Michael S wrote:

I can't get excel to autofill my formula correctly. I need it to refer to
every sixth cell on another sheet. Excel just chooses the number of cells I
click for autofill and increments the cell number by that much.

e.g., =if(isnumber(sheet2!c1)... then next row down is =if(...c7) and next
is c13, etc. the autofill pattern for the next cells is c4, c10, and c16. I
need it to be c19, c25, and c31. Selecting 6 cells doesnt work either, i.e.,
1,7,13,19,25,31 produces 7,13,19,25,31,37. How do I go about this?

TIA


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Autofill column values in formulas

Thanks for responding.

It should not matter what the formula is or where it starts. Think of the
simplest formula you can that refers to any cell (n). Next row down the
formula should refer to cell (n+6).

Frustrating that if I put in any coulmn 6, 12, 18 and select and drag them
down 3 more rows I get 24, 30, and 36. But if I put it in a formula, e.g.,
row(c6), row(c12), row(c18), and do the same thing I get 9, 15, and 21. Not
logical.

I see where you're going with the example below, but I can't seem to make it
do what you're intending. I can't get it to autogenerate the numbers that you
want me to cut and paste as values.

If you need to know my exact formula, here it is.

=IF(OR(ISNUMBER('Price Summary - details'!I12),ISTEXT('Price Summary -
details'!I12)),'Price Summary - details'!I12," ") then substitute I12 with
increments of 6. This starts in row 20.

Thanks again for your attention.

--
Not particularly happy with Office 2007


"Dave Peterson" wrote:

You may be able to use =indirect() or =index(), but you didn't share enough of
the formula to get a meaningful suggestion (from me anyway).

When I want this kind of increment in a formula, I'll do this...

I'll create a formula that builds a string that looks like the formula:

="=if(isnumber(sheet2!c"&(6*(row()-1)+1&")...."
This assumes that the formula is in row 1.
If the formula is in a different row, then I'd adjust that (6*(row()-1)+1 to a
different expression.

Then I'd drag this formula down.

If my formula that builds that string looks like it's the correct formula, then
I'll convert it to values.
(edit|copy followed by edit|paste special|values).

But the results are still just plain old strings (that look like formulas).

Next, I'd convert it to formulas.

Select the single column range.
Data|text to columns
Choose Fixed width, but don't have any delimiters.

Excel will see the results as those nice straight-forward formulas.

============
If you want to try this, but are having trouble, share your entire formula and
the cell that gets that first formula.



NOV Michael S wrote:

I can't get excel to autofill my formula correctly. I need it to refer to
every sixth cell on another sheet. Excel just chooses the number of cells I
click for autofill and increments the cell number by that much.

e.g., =if(isnumber(sheet2!c1)... then next row down is =if(...c7) and next
is c13, etc. the autofill pattern for the next cells is c4, c10, and c16. I
need it to be c19, c25, and c31. Selecting 6 cells doesnt work either, i.e.,
1,7,13,19,25,31 produces 7,13,19,25,31,37. How do I go about this?

TIA


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Autofill column values in formulas

The starting row of the cell with the formula makes a difference to the formula
that creates that string that looks like the formula.



NOV Michael S wrote:

Thanks for responding.

It should not matter what the formula is or where it starts. Think of the
simplest formula you can that refers to any cell (n). Next row down the
formula should refer to cell (n+6).

Frustrating that if I put in any coulmn 6, 12, 18 and select and drag them
down 3 more rows I get 24, 30, and 36. But if I put it in a formula, e.g.,
row(c6), row(c12), row(c18), and do the same thing I get 9, 15, and 21. Not
logical.

I see where you're going with the example below, but I can't seem to make it
do what you're intending. I can't get it to autogenerate the numbers that you
want me to cut and paste as values.

If you need to know my exact formula, here it is.

=IF(OR(ISNUMBER('Price Summary - details'!I12),ISTEXT('Price Summary -
details'!I12)),'Price Summary - details'!I12," ") then substitute I12 with
increments of 6. This starts in row 20.

Thanks again for your attention.

--
Not particularly happy with Office 2007

"Dave Peterson" wrote:

You may be able to use =indirect() or =index(), but you didn't share enough of
the formula to get a meaningful suggestion (from me anyway).

When I want this kind of increment in a formula, I'll do this...

I'll create a formula that builds a string that looks like the formula:

="=if(isnumber(sheet2!c"&(6*(row()-1)+1&")...."
This assumes that the formula is in row 1.
If the formula is in a different row, then I'd adjust that (6*(row()-1)+1 to a
different expression.

Then I'd drag this formula down.

If my formula that builds that string looks like it's the correct formula, then
I'll convert it to values.
(edit|copy followed by edit|paste special|values).

But the results are still just plain old strings (that look like formulas).

Next, I'd convert it to formulas.

Select the single column range.
Data|text to columns
Choose Fixed width, but don't have any delimiters.

Excel will see the results as those nice straight-forward formulas.

============
If you want to try this, but are having trouble, share your entire formula and
the cell that gets that first formula.



NOV Michael S wrote:

I can't get excel to autofill my formula correctly. I need it to refer to
every sixth cell on another sheet. Excel just chooses the number of cells I
click for autofill and increments the cell number by that much.

e.g., =if(isnumber(sheet2!c1)... then next row down is =if(...c7) and next
is c13, etc. the autofill pattern for the next cells is c4, c10, and c16. I
need it to be c19, c25, and c31. Selecting 6 cells doesnt work either, i.e.,
1,7,13,19,25,31 produces 7,13,19,25,31,37. How do I go about this?

TIA


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Autofill column values in formulas

I didn't notice the last sentence that the first formula starts in row 20:

="=IF(OR(ISNUMBER('Price Summary - details'!I"&((ROW()-20)+2)*6&"),
ISTEXT('Price Summary - details'!I"&((ROW()-20)+2)*6&")),
'Price Summary - details'!i"&((ROW()-20)+2)*6&","""")"


It looks like you're trying to hide the 0 that's returned when the sending cell
is empty.

This would work if you were typing it yourself:

=if('price summary - details'!i12="","",'price summary - details'!i12)

The formula that builds the formula for this would be:

="=IF('Price Summary - details'!I"&((ROW()-20)+2)*6&"="""","""",
'Price Summary - details'!I"&((ROW()-20)+2)*6&")"






NOV Michael S wrote:

Thanks for responding.

It should not matter what the formula is or where it starts. Think of the
simplest formula you can that refers to any cell (n). Next row down the
formula should refer to cell (n+6).

Frustrating that if I put in any coulmn 6, 12, 18 and select and drag them
down 3 more rows I get 24, 30, and 36. But if I put it in a formula, e.g.,
row(c6), row(c12), row(c18), and do the same thing I get 9, 15, and 21. Not
logical.

I see where you're going with the example below, but I can't seem to make it
do what you're intending. I can't get it to autogenerate the numbers that you
want me to cut and paste as values.

If you need to know my exact formula, here it is.

=IF(OR(ISNUMBER('Price Summary - details'!I12),ISTEXT('Price Summary -
details'!I12)),'Price Summary - details'!I12," ") then substitute I12 with
increments of 6. This starts in row 20.

Thanks again for your attention.

--
Not particularly happy with Office 2007

"Dave Peterson" wrote:

You may be able to use =indirect() or =index(), but you didn't share enough of
the formula to get a meaningful suggestion (from me anyway).

When I want this kind of increment in a formula, I'll do this...

I'll create a formula that builds a string that looks like the formula:

="=if(isnumber(sheet2!c"&(6*(row()-1)+1&")...."
This assumes that the formula is in row 1.
If the formula is in a different row, then I'd adjust that (6*(row()-1)+1 to a
different expression.

Then I'd drag this formula down.

If my formula that builds that string looks like it's the correct formula, then
I'll convert it to values.
(edit|copy followed by edit|paste special|values).

But the results are still just plain old strings (that look like formulas).

Next, I'd convert it to formulas.

Select the single column range.
Data|text to columns
Choose Fixed width, but don't have any delimiters.

Excel will see the results as those nice straight-forward formulas.

============
If you want to try this, but are having trouble, share your entire formula and
the cell that gets that first formula.



NOV Michael S wrote:

I can't get excel to autofill my formula correctly. I need it to refer to
every sixth cell on another sheet. Excel just chooses the number of cells I
click for autofill and increments the cell number by that much.

e.g., =if(isnumber(sheet2!c1)... then next row down is =if(...c7) and next
is c13, etc. the autofill pattern for the next cells is c4, c10, and c16. I
need it to be c19, c25, and c31. Selecting 6 cells doesnt work either, i.e.,
1,7,13,19,25,31 produces 7,13,19,25,31,37. How do I go about this?

TIA


--

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
Automating to autofill column B based on column A entry GirlFridayCA Excel Discussion (Misc queries) 2 December 2nd 08 10:46 PM
Autofill macro formulas Leona Excel Worksheet Functions 0 July 6th 07 04:54 PM
Formulas autofill ok but continues to carry tot from 1st column?? ET Excel Worksheet Functions 3 July 27th 06 03:56 PM
AutoFill w/formulas JamesElting Excel Worksheet Functions 1 September 2nd 05 05:38 PM
Autofill Column D based on input in Column C Helen McClaine Excel Discussion (Misc queries) 1 April 5th 05 09:11 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"