using option buttons

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I inserted 4 option buttons in a sheet (developer-->insert). I linked them to cell K1
Now when i click on the first one then K=1, second one, then K=2 etc.
So far so good. I wrote this formula in L1

L1 = if (K1=1, N1=1,N1=100)

So I want to make the value of cell N1 = 1 if K1 is 1, how can I do that? Now I am getting FALSE in cell L1!
Thank you very much.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
A formula can only affect the cell it's in.
So if you want to display 1 in N1, then you will need to put the formula in N1
 
Upvote 0
I wrote this formula in L1 =IF(K1=1,L1=100,L1=200) but it always give me 0.
K1 value is changing from 1 to 4 depends on which option i clicked but still 0
Thank you.
 
Upvote 0
As Fluff saif, a formula can only ever return a value to the cell it is located in, so you do not need to designate which cell it goes in.
Just put this formula in cell L1:
Code:
[COLOR=#333333]=IF(K1=1,100,200)[/COLOR]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,312
Members
449,152
Latest member
PressEscape

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top