Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Calculate the value of Z

And we can further shorten the formula for Z to this...

=MOD(SUMPRODUCT((10-ROW(A1:A9))*MID(A1&B1,ROW(A1:A9),1)),10)

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
And I believe the formula for Z can be shortened to this...

=MOD(SUMPRODUCT((10-ROW(A1:A7))*MID(A1,ROW(A1:A7),1))+MID(B1,2,1)+2*MI D(B1,1,1),10)

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
=MOD(SUM(MID(A1,1,1)*9,MID(A1,2,1)*8,MID(A1,3,1)*7 ,MID(A1,4,1)*6,MID(A1,5,1)*5,MID(A1,6,1)*4,MID(A1, 7,1)*3,MID(B1,1,1)*2,MID(B1,2,1)*1),10)


You don't really need the SUM function...

=MOD(MID(B1,2,1)+2*MID(B1,1,1)+3*MID(A1,7,1)+4*MID (A1,6,1)+5*MID(A1,5,1)+6*MID(A1,4,1)+7*MID(A1,3,1) +8*MID(A1,2,1)+9*MID(A1,1,1),10)

--
Rick (MVP - Excel)



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
calculate time does not calculate Wanna Learn Excel Discussion (Misc queries) 4 August 19th 08 12:51 AM
IF THERE ARE 9 P AND 5 A IN A ROW THEN HOW TO CALCULATE SRINIVAS Excel Worksheet Functions 5 October 28th 07 09:52 AM
Re-calculate No Name Excel Discussion (Misc queries) 8 May 2nd 07 09:15 PM
How to calculate an age? PattiJ621 Excel Worksheet Functions 4 March 15th 06 04:46 PM
won't calculate far enough NTaylor Excel Discussion (Misc queries) 5 January 11th 06 04:03 PM


All times are GMT +1. The time now is 08:55 AM.

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"