Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help: Converting Pluses and Times to Sum and Product Functions ???

I have converted Lotus 1-2-3 spreadsheets that are just shy of functioning
properly in the Excel environment. Lotus apparently treats text in cells as 0
or 1 values so that when they are added or multiplied (with operands) it has
no net effect on the value that results. Excel returns an error message when
using operands to sum/multiply values with text. I did discover that Excel
does what I need it to do when using the =SUM() and =Product() functions. I
updated all the formulas by hand in one sheet and then found that there are
69 more sheets and the formulas are irregular.

Does anyone have any idea how to write a VBA macro that will parse the
spreadsheet and convert all the formulas to use SUM and/or PRODUCT instead of
" + " and " * "?

Example
Convert: " =ROUND ( (+CO34 +DA34 -AA33) * DD34,0) "

To: " =ROUND (PRODUCT (SUM (CO34,DA34,-AA33) ,DD34) ,0) "
or
To: " =ROUND (PRODUCT (SUM (CO34) + SUM (CO34) - SUM (AA33) ,1) * PRODUCT
(DD34,1) ,0) "

Both methods seem to give me the same result. The second way is easier for me
to approach, but I haven't been able to nail it down.

Thank you!
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
Product of Hrs & minutes times rate per hr to give a cost Steve[_14_] Excel Discussion (Misc queries) 1 May 27th 08 01:50 PM
In using the formula for Product (A2:A4,2), why times 2? Felicia Excel Worksheet Functions 3 April 14th 08 08:50 PM
Excel Functions- Product Array [email protected] Excel Worksheet Functions 2 February 27th 07 03:22 PM
Automatic Product Functions macabe Excel Worksheet Functions 1 June 8th 06 08:29 PM
Converting Times ryan wells Excel Programming 1 June 12th 04 11:35 PM


All times are GMT +1. The time now is 04:17 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"