PC Review


Reply
Thread Tools Rate Thread

How do I take a number from a cell and mult each digit by

 
 
=?Utf-8?B?Z3JleWhvdW5kIGdpcmw=?=
Guest
Posts: n/a
 
      8th Nov 2006
I need to take the number entered into a cell and then take each digit of
that number and multiply it by another. Can this be done outside of coding?
 
Reply With Quote
 
 
 
 
Leo Heuser
Guest
Posts: n/a
 
      8th Nov 2006
"greyhound girl" <greyhound (E-Mail Removed)> skrev i en
meddelelse news:E84D21EF-A19E-4658-A364-(E-Mail Removed)...
>I need to take the number entered into a cell and then take each digit of
> that number and multiply it by another. Can this be done outside of
> coding?


One way:

=PRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

The formula is an array formula and must be submitted with
<Shift><Ctrl><Enter>, also if edited later.


--
Best regards
Leo Heuser

Followup to newsgroup only please.


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      8th Nov 2006
If you want to multiply them all by 1

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

If some other number, say 7

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(ROW(INDIRECT("1:"&L
EN(A1)))^0*7))

If by some set of weightings, such as 56432684

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(MID("56432684",ROW(
INDIRECT("1:"&LEN(A1))),1)))

or if using those weightings aligned (i.e. final digit by 4, previous by 8,
etc.)

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(MID("56432684",LEN(
"56432684")-ROW(INDIRECT("1:"&LEN(A1)))+1,1)))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"greyhound girl" <greyhound (E-Mail Removed)> wrote in message
news:E84D21EF-A19E-4658-A364-(E-Mail Removed)...
> I need to take the number entered into a cell and then take each digit of
> that number and multiply it by another. Can this be done outside of

coding?


 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      8th Nov 2006
Hi Bob,

just this one -

> If some other number, say 7
>
>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(ROW(INDIRECT("1:"&L
> EN(A1)))^0*7))


why not simply -

=SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*7)

Regards,
Peter T

"Bob Phillips" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you want to multiply them all by 1
>
> =SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))
>
> If some other number, say 7
>
>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(ROW(INDIRECT("1:"&L
> EN(A1)))^0*7))
>
> If by some set of weightings, such as 56432684
>
>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(MID("56432684",ROW(
> INDIRECT("1:"&LEN(A1))),1)))
>
> or if using those weightings aligned (i.e. final digit by 4, previous by

8,
> etc.)
>
>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(MID("56432684",LEN(
> "56432684")-ROW(INDIRECT("1:"&LEN(A1)))+1,1)))
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "greyhound girl" <greyhound (E-Mail Removed)> wrote in

message
> news:E84D21EF-A19E-4658-A364-(E-Mail Removed)...
> > I need to take the number entered into a cell and then take each digit

of
> > that number and multiply it by another. Can this be done outside of

> coding?
>
>



 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      8th Nov 2006
or even without the VALUE(...) or a --

=SUMPRODUCT(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)*7)

Regards,
Peter T

"Peter T" <peter_t@discussions> wrote in message
news:(E-Mail Removed)...
> Hi Bob,
>
> just this one -
>
> > If some other number, say 7
> >
> >

>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(ROW(INDIRECT("1:"&L
> > EN(A1)))^0*7))

>
> why not simply -
>
> =SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*7)
>
> Regards,
> Peter T
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > If you want to multiply them all by 1
> >
> > =SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))
> >
> > If some other number, say 7
> >
> >

>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(ROW(INDIRECT("1:"&L
> > EN(A1)))^0*7))
> >
> > If by some set of weightings, such as 56432684
> >
> >

>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(MID("56432684",ROW(
> > INDIRECT("1:"&LEN(A1))),1)))
> >
> > or if using those weightings aligned (i.e. final digit by 4, previous by

> 8,
> > etc.)
> >
> >

>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(MID("56432684",LEN(
> > "56432684")-ROW(INDIRECT("1:"&LEN(A1)))+1,1)))
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (replace somewhere in email address with gmail if mailing direct)
> >
> > "greyhound girl" <greyhound (E-Mail Removed)> wrote in

> message
> > news:E84D21EF-A19E-4658-A364-(E-Mail Removed)...
> > > I need to take the number entered into a cell and then take each digit

> of
> > > that number and multiply it by another. Can this be done outside of

> > coding?
> >
> >

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      8th Nov 2006
I think I got bogged down in thinking of equal array sizes?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Peter T" <peter_t@discussions> wrote in message
news:(E-Mail Removed)...
> Hi Bob,
>
> just this one -
>
> > If some other number, say 7
> >
> >

>

=SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),--(ROW(INDIRECT("1:"&L
> > EN(A1)))^0*7))

>
> why not simply -
>
> =SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*7)
>
> Regards,
> Peter T



 
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
How to validate a cell to insert from 9 digit number to 13 digit number. ramulu via OfficeKB.com Microsoft Excel Worksheet Functions 1 21st Feb 2007 02:32 PM
How to validate a cell to insert from 9 digit number to 13 digit number. ramulu Microsoft Excel Worksheet Functions 1 21st Feb 2007 10:00 AM
How do I seperate a 10 digit number into one cell for each number? =?Utf-8?B?VGtyaWdlcg==?= Microsoft Excel Misc 2 26th Jan 2007 04:29 PM
each number in cell should be 10 digit =?Utf-8?B?VmlwdWw=?= Microsoft Excel Worksheet Functions 2 2nd Nov 2006 11:32 AM
Color a single digit in a mult-digit number cell =?Utf-8?B?UGh5bGxpcw==?= Microsoft Excel Misc 6 17th Nov 2005 12:46 AM


Features
 

Advertising
 

Newsgroups
 


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