Any way of adding formulas to popup menus or tick boxes?
Is this even possible?
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
Is this even possible?
"I can do the math I need to do to a cell but how do I get the pop up or tick box to talk to that cell?? "
You don't.
You get 'that cell" to 'read' "the pop up or the tick box" by placing a formula in "that cell."
Using your example above:
H2 is your "pop up menu" cell. It has three items, 'none', "Long", and "Short"
N2 is "that cell." It contains the formula shown.
In cell N2, the first IF gets the content displayed in H2.
Regarding the tick box:
What content is to change, depending on the state of the checkbox in P2?
If it the the word displayed in O2, use this formula in O2, replacing "checked" with the word you want displayed when the box is ticked:
O2: IF(P2,"checked","open")
Regards,
Barry
Okay so more information,
here's what I'm thinking,
That formula is calculated for TP1, what I want is a similar calculation for the TP2 box but would like a drop down menu to either give me a price (calculated from a formula) or for it to simply say "Open" with no formula attached.
Same with the Tickbox, if tick box ticked then I need a formula to calculate a formula.
I know I'm trying to be fancy pants but it will make life so much easier inputting data.
Okay firstly let me apologise,
So, ive misunderstood what I actually thought was possible, hence my first opener of "is this even possible?"
I now understand the drop down menu cell is JUST and control cell for the option. I thought I could have the drop down box display the actually result of a formula that I needed. Sorted that now.
So, "O" is control cell, "P" is the result of option cell.
Now, This is where my head gets lost slightly,
So I have my basic math sorted for the option of TP2 which is F + K, BUT only if H states long. which isn't in the formula YET as slowly working through the math. I need it to do the opposite if H Staes "Short" (F - K)
I actually think this works now.
So sorry guys to waste your time for not explaining correctly but even through your replies and my frustration I understand now .
Thank you :-)
Impossible to answer until you provide more detail regarding what you want.
What action will the user take?
What will be the result of that action?
Pop-up menus and checkboxes are data entry devices. Data ('true' or 'false' in the case of checkboxes, one value chosen from a list of values in the case of popup menus) is entered into the cell by clicking th box or by choosing a menu item. That data may be read by a formula in another cell, and the data can be used by the formula in that cell to create a value to be displayed and available in that cell.
How that is done depends on the details of the data provided and the data to be produced.
Regards,
Barry
Hi Gaz,
You can use a popup or checkbox value in a calculation in another cell that has a formula. This may give you what you are looking for. A cell can hold a formula or entered data but not both.
quinn
Hi Gaz,
It is still not clear to me what you want.
To be clear, a dropdown or popup menu cannot hold a calulated value.
Checkboxes have either "FALSE"(unchecked) or "TRUE"(checked) as their value. You can use IF to test the value and deliver a calculation to a cell with a formula. So your check box in Column P could be tested so that a formula in N shows either "Open" or a calulated price.
quinn
Hi Quinn,
sorry for not explaining clearly enough.
Although I think you've answered it but Im still not sure I know how to do it.
"You can use IF to test the value and deliver a calculation to a cell with a formula. So your check box in Column P could be tested so that a formula in N shows either "Open" or a calulated price."
How do I do this?? coz this is exactly what I want to do.
I can do the math I need to do to a cell but how do I get the pop up or tick box to talk to that cell??
yes yes thanks guys,
I have my head around the checkboxes now, ty
Tried to do the same theory with the pop ups but getting "Argument 1 of IF expects a Boolean, but cell O2 contains a string"
grrrrrrr
I just want to have a couple of options with different math and outputs to another cell. This is doing my head in now and I bet I' doing yours in. lol
Don't worry I'll figure it out.
thanks so much guys
"Tried to do the same theory with the pop ups but getting "Argument 1 of IF expects a Boolean, but cell O2 contains a string"
Checkboxes contain a Boolean (value)—either TRUE or FALSE.
In the IF statement examples above, the first argument is a comparison. That comparison returns a Boolean—TRUE if the comparison is true, FALSE if it is not.
2=1*2 returns TRUE
5-4>2 returns FALSE
A1="Joe wins" returns TRUE if cell A1 contains the text 'Joe wins' and returns FALSE if cell A1 is empty or contains anything other that that exact text.
The syntax for IF is: IF(expression,if-true,if-false)
expression can be any expression that will return a Boolean (true or false)
if-true tells the formula what to do if expression returns true
if-false tells the formula what t do if expression returns false
if-true and if-false can be specific values or can be formulas
The result is calculated and displayed in the cell containing the formula.
Here's an example:
The formula is placed in cell B2:
B2: IF(A2="Joe wins","Congratulations, Joe!","That's too bad, Joe. Please try again.")
Unfortunately, this formula will display the second message whenever A2 contains anything other that "Joe wins" (which we want), including any time when A2 is empty. One way to avoid that is to wrap the whole formula shown above in another IF statement. expression in this case checks for lack of content in A2, and calls the formula above only if there is something in A2.
B2: IF(A2="", "", IF(A2="Joe wins","Congratulations, Joe!","That's too bad, Joe. Please try again."))
"I just want to have a couple of options with different math and outputs to another cell. This is doing my head in now and I bet I' doing yours in. lol "
Actually, what is 'doing my head in' is the lack of specific detail in your posts, forcing us to guess why your formulas are not working. Including a copy of the not-working formula in your post would make the diagnosis and repair much easier. Including a screen shot, showing the formula, as you did in our first reply to Quinn, is also a great help to our understanding on what you want to happen (and to why it is not happeining).
Regards,
Barry
Hi Gaz,
Adding to Barry's reply:
Barry wrote:
The syntax for IF is: IF(expression,if-true,if-false)
I think of that as if, then, else.
If it is raining, then stay at home, else go for a picnic.
Regards,
Ian.
Hi Gaz,
I am thinking something like:
IF(P2,<your formula>,"open")
What this says is if the checkbox in P2 is checked, use <your formula>, otherwise return "open"
quinn
Lol thanks Ian. 👍👍
if statements I don’t have an issue with, attaching them to a pop up menu is where I then struggle 🙈
Any way of adding formulas to popup menus or tick boxes?