formula in numbers

formula copies the format of the calculated cell, how can i avoid that?

cell formatted with = and " (= 249")using formula : TRUNC(A3÷12)& "' "& MOD(A3,12)& """"  the result is (20' 9") but it displays like this :

= 20"' = 9"" the formula cell is auto formated and i've tried various formats but it won't change the format this is a sum of various cells that are formatted with 9=and ") equaling the total inches which i then make one last formula to have result of Feet and inches, please help thanks


Posted on Nov 28, 2023 1:07 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 29, 2023 6:10 AM

What happens is that the OP formatted his total inches cell like this


In the next cell, he used the plain number 249 and converted it to a string to make feet and inches with the formula he showed.


Unfortunately, Numbers "helpfully" (cough!) carried over the formatting of the source cell and applied it to any part that was still a number, the 20 and the 9.



As I'm writing this the solution became obvious. The numbers have to be made as strings to avoid this formatting to be carried over.


=FIXED(TRUNC(A9÷12),0)& "' "& FIXED(MOD(A9,12),0)& """"


So easy when we understand what happens under the hood.

9 replies
Question marked as Top-ranking reply

Nov 29, 2023 6:10 AM in response to Yellowbox

What happens is that the OP formatted his total inches cell like this


In the next cell, he used the plain number 249 and converted it to a string to make feet and inches with the formula he showed.


Unfortunately, Numbers "helpfully" (cough!) carried over the formatting of the source cell and applied it to any part that was still a number, the 20 and the 9.



As I'm writing this the solution became obvious. The numbers have to be made as strings to avoid this formatting to be carried over.


=FIXED(TRUNC(A9÷12),0)& "' "& FIXED(MOD(A9,12),0)& """"


So easy when we understand what happens under the hood.

Nov 28, 2023 1:32 PM in response to Cristelo

I don't understand why you have to give a custom format to your result. Just set it to automatic.



OK, I get it:


Why would you put an = in a cell? Isn't it obvious that it's a total? But the repetition of " is annoying, yes. I wonder why Numbers does that.

You can take take of the last one by shortening the formula:

TRUNC(A3÷12)& "' "& MOD(A3,12)

The middle one, hmmmm...

Nov 28, 2023 8:57 PM in response to Cristelo

Hi Cristelo,


Your question took me back to Junior School where we had to work with Base Twelve (12 inches in a foot, 12 pence in a shilling), therefore Carry 12 instead of 10.


I do not understand your overall aim. We can not see what you see, but a screen shot will help.

I see two ways. Which way do you want to go?


  1. Table 1 uses separate input columns for Feet and Inches, adds them, and then converts the total to Feet Inches.
  2. Table 2 uses a single column for Feet Inches, then pulls the values into separate Feet and Inches columns, converts them to Inches, adds them, then converts the total to Feet Inches.




A screen shot of your data will help us to understand.


Note: I suggest that you use two single quotes ('') instead of a double quote (") as the inches symbol. I had a lot of trouble in Table 2 with (hint, hint) TEXTBETWEEN and a double quote.


Happy Numbering!

Ian.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

formula in numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.