ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Array formula (https://www.excelbanter.com/excel-discussion-misc-queries/160032-array-formula.html)

Jeff[_8_]

Array formula
 
Hello,

I am using this formula to multiply all the digits in an integer:

=PRODUCT(VALUE(MID(C55,ROW(A1:OFFSET(A1,LEN(C55)-1,0)),1)))

So far so good...

But I want to copy this array formula for a large range of cells, each
with a different integer. But my understanding is that an array
formula must be the same for the range of cells. How can I get it to
update to different cells (C55 in the above formula, the next one is
C64, e.g.) like a regular formula?

Thanks,
Jeff


Stefi

Array formula
 
Just drag down (or copy) like a normal formula, Excel shall update relative
references alike in case of regular formulae.

Regards,
Stefi

€˛Jeff€¯ ezt Ć*rta:

Hello,

I am using this formula to multiply all the digits in an integer:

=PRODUCT(VALUE(MID(C55,ROW(A1:OFFSET(A1,LEN(C55)-1,0)),1)))

So far so good...

But I want to copy this array formula for a large range of cells, each
with a different integer. But my understanding is that an array
formula must be the same for the range of cells. How can I get it to
update to different cells (C55 in the above formula, the next one is
C64, e.g.) like a regular formula?

Thanks,
Jeff



Pete_UK

Array formula
 
Have you tried a straight copy and paste to another cell? Doesn't the
C55 change relative to where you have copied it to?

Pete

On Sep 28, 10:51 am, Jeff wrote:
Hello,

I am using this formula to multiply all the digits in an integer:

=PRODUCT(VALUE(MID(C55,ROW(A1:OFFSET(A1,LEN(C55)-1,0)),1)))

So far so good...

But I want to copy this array formula for a large range of cells, each
with a different integer. But my understanding is that an array
formula must be the same for the range of cells. How can I get it to
update to different cells (C55 in the above formula, the next one is
C64, e.g.) like a regular formula?

Thanks,
Jeff




Jeff[_8_]

Array formula
 
On Sep 28, 3:33 am, Stefi wrote:
Just drag down (or copy) like a normal formula, Excel shall update relative
references alike in case of regular formulae.

Regards,
Stefi

,,Jeff" ezt ķrta:

Hello,


I am using this formula to multiply all the digits in an integer:


=PRODUCT(VALUE(MID(C55,ROW(A1:OFFSET(A1,LEN(C55)-1,0)),1)))


So far so good...


But I want to copy this array formula for a large range of cells, each
with a different integer. But my understanding is that an array
formula must be the same for the range of cells. How can I get it to
update to different cells (C55 in the above formula, the next one is
C64, e.g.) like a regular formula?


Thanks,
Jeff


Stefi and Pete,

Thanks for helping me out here, but cut and paste doesn't work in this
case. All I get is the #Value in all of the cells or exactly the same
value in every cell. Any other ideas?


Peo Sjoblom

Array formula
 
Which part of the formula do you want to copy, if you want to copy and have
the formula to change to

=PRODUCT(VALUE(MID(C56,ROW(A2:OFFSET(A2,LEN(C56)-1,0)),1)))

when you copy it down one row then you can just drag the formula using the
fill handle, if you want parts of the formula to stay the same like

=PRODUCT(VALUE(MID(C56,ROW($A$1:OFFSET($A$1,LEN(C5 6)-1,0)),1)))

so C55 changes to C56 but A1 stays the same then you need to use the dollar
signs as I did then use the fillhandle and copy

If you get a value error it means that you are trying to calculate a cell
with text

=VALUE(A2)

with a in A2 will return value. Normally you use VALUE to force text numbers
into real numbers. Finally if the formula stays the same then you can do
toolsoptionscalculation and make sure the calculation is set to automatic.
Also make sure the formatting is not text


--

Regards,

Peo Sjoblom






Stefi and Pete,

Thanks for helping me out here, but cut and paste doesn't work in this
case. All I get is the #Value in all of the cells or exactly the same
value in every cell. Any other ideas?




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com