#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default 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?


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
array formula Mika Excel Worksheet Functions 4 September 11th 07 02:26 PM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Array formula and #N/A Graham Haughs Excel Worksheet Functions 6 February 19th 06 09:14 PM
Array Formula pete5761 Excel Discussion (Misc queries) 1 December 17th 05 12:54 AM
Array Formula - using LEFT("text",4) in formula Andrew L via OfficeKB.com Excel Worksheet Functions 2 August 1st 05 02:36 PM


All times are GMT +1. The time now is 01:32 PM.

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

About Us

"It's about Microsoft Excel"