A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula for each # of dollar amount due + how many digits



 
 
Thread Tools Display Modes
  #1  
Old March 6th, 2008, 05:34 PM posted to microsoft.public.excel.worksheet.functions
Olivia
external usenet poster
 
Posts: 22
Default Formula for each # of dollar amount due + how many digits

I need some help creating a function or formula in Excel for the following:

• Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks

  #2  
Old March 6th, 2008, 07:13 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips
external usenet poster
 
Posts: 5,994
Default Formula for each # of dollar amount due + how many digits

=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Olivia" wrote in message
news
I need some help creating a function or formula in Excel for the following:

. Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks



  #3  
Old March 10th, 2008, 08:38 PM posted to microsoft.public.excel.worksheet.functions
Olivia
external usenet poster
 
Posts: 22
Default Formula for each # of dollar amount due + how many digits

Hi,

The formula works great. Thank you. But I do have a question. The formula
does not calculate the zero's after the decimal point. For example: if the
amount is $2,564.00, then the formula should equal to 23. Instead, the
formula calculates to 21.

Does this have something to do with the way the cell (C89) is formatted? i.e
Text, number, accounting, etc


"Bob Phillips" wrote:

=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Olivia" wrote in message
news
I need some help creating a function or formula in Excel for the following:

. Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks




  #4  
Old March 10th, 2008, 08:52 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Formula for each # of dollar amount due + how many digits

Excel stores 2564 as 2564, not as $2564.00. $2564.00 is just the way that
you have chosen to have it displayed.
--
David Biddulph

"Olivia" wrote in message
...
Hi,

The formula works great. Thank you. But I do have a question. The formula
does not calculate the zero's after the decimal point. For example: if the
amount is $2,564.00, then the formula should equal to 23. Instead, the
formula calculates to 21.

Does this have something to do with the way the cell (C89) is formatted?
i.e
Text, number, accounting, etc


"Bob Phillips" wrote:

=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

which is an array formula, it should be committed with Ctrl-Shift-Enter,
not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets),
do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Olivia" wrote in message
news
I need some help creating a function or formula in Excel for the
following:

. Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $
amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will
automatically
populate once we enter a payment amount in a different cell.

Thanks






  #5  
Old March 11th, 2008, 12:08 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips
external usenet poster
 
Posts: 5,994
Default Formula for each # of dollar amount due + how many digits

You could fudge it

=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),
COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),(A1=INT(A 1))*2)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"David Biddulph" groups [at] biddulph.org.uk wrote in message
...
Excel stores 2564 as 2564, not as $2564.00. $2564.00 is just the way that
you have chosen to have it displayed.
--
David Biddulph

"Olivia" wrote in message
...
Hi,

The formula works great. Thank you. But I do have a question. The formula
does not calculate the zero's after the decimal point. For example: if
the
amount is $2,564.00, then the formula should equal to 23. Instead, the
formula calculates to 21.

Does this have something to do with the way the cell (C89) is formatted?
i.e
Text, number, accounting, etc


"Bob Phillips" wrote:

=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

which is an array formula, it should be committed with Ctrl-Shift-Enter,
not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets),
do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to
excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Olivia" wrote in message
news I need some help creating a function or formula in Excel for the
following:

. Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $
amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will
automatically
populate once we enter a payment amount in a different cell.

Thanks








  #6  
Old February 9th, 2010, 01:46 PM posted to microsoft.public.excel.worksheet.functions
christine mullholand
external usenet poster
 
Posts: 1
Default verification code

Did you ever find a function for the verification code? I also need that.



Olivi wrote:

Formula for each # of dollar amount due + how many digits
06-Mar-08

I need some help creating a function or formula in Excel for the following:

??? Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks

Previous Posts In This Thread:

On Thursday, March 06, 2008 12:34 PM
Olivi wrote:

Formula for each # of dollar amount due + how many digits
I need some help creating a function or formula in Excel for the following:

??? Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks

On Thursday, March 06, 2008 2:13 PM
Bob Phillips wrote:

Formula for each # of dollar amount due + how many digits
=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Olivia" wrote in message
news
On Monday, March 10, 2008 4:38 PM
Olivi wrote:

Hi,The formula works great. Thank you. But I do have a question.
Hi,

The formula works great. Thank you. But I do have a question. The formula
does not calculate the zero's after the decimal point. For example: if the
amount is $2,564.00, then the formula should equal to 23. Instead, the
formula calculates to 21.

Does this have something to do with the way the cell (C89) is formatted? i.e
Text, number, accounting, etc


"Bob Phillips" wrote:

On Monday, March 10, 2008 4:52 PM
David Biddulph wrote:

Excel stores 2564 as 2564, not as $2564.00. $2564.
Excel stores 2564 as 2564, not as $2564.00. $2564.00 is just the way that
you have chosen to have it displayed.
--
David Biddulph

On Tuesday, March 11, 2008 8:08 AM
Bob Phillips wrote:

You could fudge
You could fudge it

=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),
COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),(A1=INT(A 1))*2)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"David Biddulph" groups [at] biddulph.org.uk wrote in message
...


Submitted via EggHeadCafe - Software Developer Portal of Choice
Sending SMTP email from within BizTalk Orchestration
http://www.eggheadcafe.com/tutorials...il-from-w.aspx
  #7  
Old February 9th, 2010, 02:29 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default verification code

The following array formula (commit with CTRL+SHIFT+ENTER) will work:

=SUM(--MID(SUBSTITUTE(A1,".",""),
ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1,".","")))),1)) +
LEN(SUBSTITUTE(A1,".",""))


christine mullholand wrote:
Did you ever find a function for the verification code? I also need that.



Olivi wrote:

Formula for each # of dollar amount due + how many digits
06-Mar-08

I need some help creating a function or formula in Excel for the following:

??? Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks

Previous Posts In This Thread:

On Thursday, March 06, 2008 12:34 PM
Olivi wrote:

Formula for each # of dollar amount due + how many digits
I need some help creating a function or formula in Excel for the following:

??? Example: payment amount is $2,589.32
Run a tape: 2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) =
35 --- 35 is your verification code.

Is there a formula or function in excel, so that this will automatically
populate once we enter a payment amount in a different cell.

Thanks

On Thursday, March 06, 2008 2:13 PM
Bob Phillips wrote:

Formula for each # of dollar amount due + how many digits
=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to excel
2007), but must use an explicit range.

  #8  
Old February 9th, 2010, 02:36 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default verification code

Shorter version (still array formula):

=SUM(--("0"&MID(A1,ROW(1:99),1)))+LEN(SUBSTITUTE(A1,"."," "))


Glenn wrote:
The following array formula (commit with CTRL+SHIFT+ENTER) will work:

=SUM(--MID(SUBSTITUTE(A1,".",""),
ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1,".","")))),1)) +
LEN(SUBSTITUTE(A1,".",""))


christine mullholand wrote:
Did you ever find a function for the verification code? I also need
that.



Olivi wrote:

Formula for each # of dollar amount due + how many digits
06-Mar-08

I need some help creating a function or formula in Excel for the
following:

??? Example: payment amount is $2,589.32 Run a tape:
2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) = 35 --- 35 is
your verification code.
Is there a formula or function in excel, so that this will
automatically populate once we enter a payment amount in a different
cell.

Thanks

Previous Posts In This Thread:

On Thursday, March 06, 2008 12:34 PM
Olivi wrote:

Formula for each # of dollar amount due + how many digits
I need some help creating a function or formula in Excel for the
following:

??? Example: payment amount is $2,589.32 Run a tape:
2+5+8+9+3+2 + 6 (how many numbers you have in $ amt) = 35 --- 35 is
your verification code.
Is there a formula or function in excel, so that this will
automatically populate once we enter a payment amount in a different
cell.

Thanks

On Thursday, March 06, 2008 2:13 PM
Bob Phillips wrote:

Formula for each # of dollar amount due + how many digits
=SUM(IF(ISNUMBER(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))))+COUNT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))


which is an array formula, it should be committed with
Ctrl-Shift-Enter, not just Enter.
Excel will automatically enclose the formula in braces (curly
brackets), do not try to do this manually.
When editing the formula, it must again be array-entered.

Note that you cannot use a whole column in array formulae (prior to
excel 2007), but must use an explicit range.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:18 AM.


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