#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 217
Default WEIRD QUESTION

I have to calc every mth for the State of calif the following. you know how
govn offices are?????

if the amount is 56,995.87 I have to calc the following

5+6+9+9+5+8+7 = 49 + 7 =63

h=the $56K number varies every time it is calc. I have been using
spreadsheets since lotus 1A but I am at a loss on how to do this. Is anyone
up for this?

Don't you just love government offices.

Louise
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default WEIRD QUESTION

I'm not sure how 49 + 7 = 63, but perhaps something like this array formula
might help? This actually results in 56 (49+7), but maybe this will at least
point you in the right direction.

=SUM(VALUE(RIGHT(INT($A$1/{10000,1000,100,10,1,0.1,0.01}),1)))+7

Array formulas are entered with CTRL-SHIFT-ENTER instead of just Enter. You
should see { } surrounding the formula if done properly.

This formula will work for numbers up to 99,999.99. If you need to go
larger, then just add 100000, 1000000 etc...

HTH,
Elkar


"Louise" wrote:

I have to calc every mth for the State of calif the following. you know how
govn offices are?????

if the amount is 56,995.87 I have to calc the following

5+6+9+9+5+8+7 = 49 + 7 =63

h=the $56K number varies every time it is calc. I have been using
spreadsheets since lotus 1A but I am at a loss on how to do this. Is anyone
up for this?

Don't you just love government offices.

Louise

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default WEIRD QUESTION

Bob Phillips just posted this in response to a very similar question:

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

I'm not sure where the 7 comes from, though.

If it's the number of digits in that value, you could include this:
-LEN(TEXT(100*A1,"0"))
at the end.


Louise wrote:

I have to calc every mth for the State of calif the following. you know how
govn offices are?????

if the amount is 56,995.87 I have to calc the following

5+6+9+9+5+8+7 = 49 + 7 =63

h=the $56K number varies every time it is calc. I have been using
spreadsheets since lotus 1A but I am at a loss on how to do this. Is anyone
up for this?

Don't you just love government offices.

Louise


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 217
Default WEIRD QUESTION

Elkar:

OK so I can't add sometimes. I am just an accountant.... ;-)

thank you it works great.


"Elkar" wrote:

I'm not sure how 49 + 7 = 63, but perhaps something like this array formula
might help? This actually results in 56 (49+7), but maybe this will at least
point you in the right direction.

=SUM(VALUE(RIGHT(INT($A$1/{10000,1000,100,10,1,0.1,0.01}),1)))+7

Array formulas are entered with CTRL-SHIFT-ENTER instead of just Enter. You
should see { } surrounding the formula if done properly.

This formula will work for numbers up to 99,999.99. If you need to go
larger, then just add 100000, 1000000 etc...

HTH,
Elkar


"Louise" wrote:

I have to calc every mth for the State of calif the following. you know how
govn offices are?????

if the amount is 56,995.87 I have to calc the following

5+6+9+9+5+8+7 = 49 + 7 =63

h=the $56K number varies every time it is calc. I have been using
spreadsheets since lotus 1A but I am at a loss on how to do this. Is anyone
up for this?

Don't you just love government offices.

Louise

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 217
Default WEIRD QUESTION

Dave:

I will try this also. The 7 is just a # that the St of CA added???

thank you
Louise

"Dave Peterson" wrote:

Bob Phillips just posted this in response to a very similar question:

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

I'm not sure where the 7 comes from, though.

If it's the number of digits in that value, you could include this:
-LEN(TEXT(100*A1,"0"))
at the end.


Louise wrote:

I have to calc every mth for the State of calif the following. you know how
govn offices are?????

if the amount is 56,995.87 I have to calc the following

5+6+9+9+5+8+7 = 49 + 7 =63

h=the $56K number varies every time it is calc. I have been using
spreadsheets since lotus 1A but I am at a loss on how to do this. Is anyone
up for this?

Don't you just love government offices.

Louise


--

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
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Weird question on filling in typing in excel bwall Excel Discussion (Misc queries) 3 September 6th 05 09:24 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM
Anybody Help with previous question Anthony Excel Discussion (Misc queries) 1 July 26th 05 01:26 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM


All times are GMT +1. The time now is 07:31 AM.

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"