Chris J Clarke Posted August 23, 2024 Share Posted August 23, 2024 I'm trying to get a Worksheet to total up the weight of my Lighting Pipes in a Drawing. I'm using the VW Spotlight Lighting Pipe Tool to vreate the pipes. (S235 Construction Material) In the Worksheet shown in the image, it's seeing the different length pipes, and reporting the weight per pipe, but my total box isn't working. @Pat Stanford helped me create a String to try and extract the number only from the weight record of the pipe, as we suspect that record is held as text rather than a number, but it still won't report the total weight of that length of pipe. Does anyone know where the record is that stores that weight please? I can then look and see how that figure is being stored. You can see the formula string I'm using to try and extract the number only in the Worksheet image. I may well be misunderstanding how that is done too. @markdd I bet this is somehting you might know? Quote Link to comment
Pat Stanford Posted August 23, 2024 Share Posted August 23, 2024 Your need to move the *A2 to outside the Value command. You have to convert the string to a number before you can do the multiplication. =A2*Value(Substring(D2, 'k', 1)) Quote Link to comment
Chris J Clarke Posted August 23, 2024 Author Share Posted August 23, 2024 I tried that, but it changes it back to =VALUE(A2*SUBSTRING(D2, 'k', 1)) as soon as I press Enter. Quote Link to comment
Pat Stanford Posted August 23, 2024 Share Posted August 23, 2024 Try and split it into two different columns. Set Column E to =Value(Substring(D2, 'k', 1)) Set Column F to A2*E2 Or post or DM me the file so I can take a look at what is happening. Quote Link to comment
Pat Stanford Posted August 23, 2024 Share Posted August 23, 2024 =VALUE(SUBSTRING(D2, 'k', 1))*A2 works for me to do the conversion and the math. There is also a hidden field ('Lighting Pipe'.'Weight') in the record that returns the weight of the pipe in grams as a number. You could use that and just do the conversion math. Also, some parts of the world you must us a semicolon instead of a comma as the parameter separators in worksheet formulas. This is in areas that use the comma as the character for the decimal point. HTH Quote Link to comment
Chris J Clarke Posted August 23, 2024 Author Share Posted August 23, 2024 Thank you so much Pat, that's all working brilliantly now. Exactly what I wanted it to do. I've save the file you edited somewhere safe, so in the event that I mess it up again, I have a working copy. Thanks so much. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.