Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to hide formula results until conditions are met

Hello i have (SUM(A6÷2×1,0))×(Services Data Sheet-1'::Table 1::AH6) the problem is i will not fill in A6 until need so all the way down my sheet i have these red triangle. I know they will go away when data is entered in A6 but i would like for them to hide until then. Can someone help me please? Thanks

MacBook Pro (Retina, 13-inch,Early 2015), OS X El Capitan (10.11.2)

Posted on Feb 4, 2016 3:08 PM

Reply
11 replies

Feb 4, 2016 4:13 PM in response to marshall.lee.feather

also, and last question today i promise.


i have a table that has text in it i have another table that i want to bring text over to is there a formula that if i tell it to look at the cell in table one and it will bring the text (name) over to table two?


Thanks again for any help and thank you t quin that did get me on the right track for the popup menu question i had earlier

Feb 4, 2016 5:37 PM in response to marshall.lee.feather

Hi marshall,


I don't understand your use of the SUM() function in your example. It looks like you are summing (A6÷2×1) and 0. Which would be A6÷2. I don't think you should be getting the error if A6 is blank. There is probably somethng else going on.


Anyway, you can test a cell for an entry with LEN()

IF(LEN(A6)>0, do your calculation, "") this will show nothing when there is no entry in A6.


If you want to bring the contents of a cell into another one, type "=" in the destination cell, then click in the cell that has the contents you want. type return.


quinn

Feb 4, 2016 7:52 PM in response to marshall.lee.feather

Hi Marshal,


I've usually recommended using IF and LEN to control this.

The general form is:


IF(LEN(keycell)<1, "",formula)


For your case:


IF(LEN(A6)<1,"",(SUM(A6÷2×1,0))×(Services Data Sheet-1'::Table 1::AH6))


Looking more closely at the formula, I'm wondering why you've used SUM(a,b) with b set to a fixed value of zero and a set to A6÷2x1. you could simplify the formula part SUM(A6÷2×1,0) by removing the two identity values, 0 for addition (which also removes the need for SUM() ) and 1 for multiplication leaving A6÷2.


IF(LEN(A6),<1,"",(A6÷2)×(Services Data Sheet-1'::Table 1::AH6))


Regards,

Barry

Feb 4, 2016 8:02 PM in response to marshall.lee.feather

Regarding the second question, =cell reference

where cell reference is the address of the cell whose contents you want to copy will do the job.



PS:

The only thing I see as likely to cause an error message from your formula is a text entry in A6 or in Services Data Sheet-1'::Table 1::AH6.

All of the arithmetic operators ( + - ÷ x ) will choke on text and throw an error.


What is the error message presented (click on the red triangle to read the message)?


Regards,

Barry

Feb 7, 2016 4:50 AM in response to marshall.lee.feather

Hello Marshall,


Have you considered or tried =IFERROR((SUM(A6÷2×1,0))×(Services Data Sheet-1'::Table 1::AH6),"") as a solution to your original issue? I may have misread, but I think this is what you were asking for. Put very simply, if your formula isn't errant it returns the value, otherwise it returns "" (or nothing). Hope this helps.

Feb 7, 2016 9:11 AM in response to t quinn

Howdy t quinn,


That may be the case. That's why I gave myself an out ("I may have misread"). The way I read it I thought he was filling the formula down the sheet in preparation for future values.

marshall.lee.feather wrote:


the problem is i will not fill in A6 until need so all the way down my sheet i have these red triangle.


You're correct that my use of IFERROR() is heavy handed, but I normally prefer the simplest solutions to a problem. We all have opinions and they all have their individual benefits. I suppose it would have been better of me to fully explain the implications of my solution. Probably would have been a good idea on my part to test to see if referencing a cell actually caused an error. Either way, have a great day.

Feb 7, 2016 3:02 PM in response to marshall.lee.feather

Hi Marshall,


Earlier, I wrote: "What is the error message presented (click on the red triangle to read the message)?"


So far there's been no response from you to that question.


When I set up a document similar to yours (two sheets, one table on each, and containing enough rows and columns to make cell references to the two cells in your formula), the formula, copied from your post and pasted into B6 of the first table, returns a 'Syntax error message'

If that is the error message you are receiving, the error is in the formula, and has nothing to do with there being data in cell A6 or not.


Re-examining your formula: =(SUM(A6÷2×1,0))×(Services Data Sheet-1'::Table 1::AH6)

The only error I see here is the missing single quote before Services Data Sheet-1' I suspect that was missed in retyping the formula into your message, as Numbers would have automatically included it in the formula if it was constructed by clicking the cell to be referenced.


Much of the formula is redundant, as has been mentioned above. There's no need to use SUM—all of the calculations being done are either multiplication or division, not addition. Nor is there any need for the parentheses not part of SUM—doing only division and multiplication, the standard order of operations will proceed from left to right, first dividing A6 by 2, then multiplying the result by AH7.


The formula below does the same job. The upper notation shows how the formula appears in Numbers '09, the lower notation shows the same formula as it appears in Numbers 3.


=A6/2*'Services Data Sheet-1'::Table 1 :: AH7

=A6÷2x'Services Data Sheet-1'::Table 1 :: AH7


The formula will show a result of 0 if there's not a number in A6. You can make it show a 'blank' cell by wrapping it in either of the IF statements posted earlier:


t quinn's: IF(LEN(A6)>0, A6÷2x'Services Data Sheet-1'::Table 1 :: AH7, "")


Barry's: IF(LEN(A6)<1,"",A6÷2x'Services Data Sheet-1'::Table 1 :: AH7)


Regards,

Barry

Feb 7, 2016 5:23 PM in response to Barry

I Want to start by saying thanks everyone for you input on helping me solve this problem. Please give me a day to get back home as I am I a hiking trip and promise to get back to you guys. Also I will be placing screen shots of my problem.


AS for the making the cell repeat what was typed I. Another thanks for the help there as well, it is solved I just want to get these red arrows gone....lol the sheet does what I want it to perfectly I just don't like the red arrows all the way down the sheet. I now you guys are working hard to help me and I promise when I get home I will be more proactive with this issue and getting you pics


thanks

-M

How to hide formula results until conditions are met

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