#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default cell value

hello all,

i need to know how to program the value of a cell. meaning based on the
value of a cell i want another cell to do somthing.

Example: if the value of cell c2 = "yes" then c3 equals "5"

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default cell value

Simply type in the cell C3 :
=if(C2="yes",5,10)
HTH
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default cell value

i need to do this programatically, the whole story is this, i have 2
checkboxes on the same row. when i check the 1st box i have some conditional
formating that happens. but when i check the 2nd box, i have the orginal cf
removed and a new cf put into place. i do this by playing with the value of
the 1st checkbox when the 2nd checkbox is clicked. my problem is if i only
click the 2nd check box and then uncheck it, the 1st cf is enacted becasue
the 1st checkbox value changes from false to true. i need to a check put
into place when i unclick the 2nd checkbox to see if the value of the 1st
checkbox should or should not be true. the check would be if cell D2
contains information then the value of the 1st checkbox should be true
otherwise it should be false.

example if value of cell d2 is true then checkbox1.value = true else
checkbox1.value = false

"Carim" wrote:

Simply type in the cell C3 :
=if(C2="yes",5,10)
HTH
Carim


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default cell value

Why not use optionbuttons? When you click one the other toggles as well.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"DanDavis" wrote in message
...
i need to do this programatically, the whole story is this, i have 2
checkboxes on the same row. when i check the 1st box i have some

conditional
formating that happens. but when i check the 2nd box, i have the orginal

cf
removed and a new cf put into place. i do this by playing with the value

of
the 1st checkbox when the 2nd checkbox is clicked. my problem is if i

only
click the 2nd check box and then uncheck it, the 1st cf is enacted becasue
the 1st checkbox value changes from false to true. i need to a check put
into place when i unclick the 2nd checkbox to see if the value of the 1st
checkbox should or should not be true. the check would be if cell D2
contains information then the value of the 1st checkbox should be true
otherwise it should be false.

example if value of cell d2 is true then checkbox1.value = true else
checkbox1.value = false

"Carim" wrote:

Simply type in the cell C3 :
=if(C2="yes",5,10)
HTH
Carim




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default cell value

i have 250 rows of info and each row has 2 checkboxes. i can't use option
buttons.

i need to know how to refer to a cell in vb

"Bob Phillips" wrote:

Why not use optionbuttons? When you click one the other toggles as well.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"DanDavis" wrote in message
...
i need to do this programatically, the whole story is this, i have 2
checkboxes on the same row. when i check the 1st box i have some

conditional
formating that happens. but when i check the 2nd box, i have the orginal

cf
removed and a new cf put into place. i do this by playing with the value

of
the 1st checkbox when the 2nd checkbox is clicked. my problem is if i

only
click the 2nd check box and then uncheck it, the 1st cf is enacted becasue
the 1st checkbox value changes from false to true. i need to a check put
into place when i unclick the 2nd checkbox to see if the value of the 1st
checkbox should or should not be true. the check would be if cell D2
contains information then the value of the 1st checkbox should be true
otherwise it should be false.

example if value of cell d2 is true then checkbox1.value = true else
checkbox1.value = false

"Carim" wrote:

Simply type in the cell C3 :
=if(C2="yes",5,10)
HTH
Carim







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default cell value

You can, you can group them

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"DanDavis" wrote in message
...
i have 250 rows of info and each row has 2 checkboxes. i can't use option
buttons.

i need to know how to refer to a cell in vb

"Bob Phillips" wrote:

Why not use optionbuttons? When you click one the other toggles as well.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"DanDavis" wrote in message
...
i need to do this programatically, the whole story is this, i have 2
checkboxes on the same row. when i check the 1st box i have some

conditional
formating that happens. but when i check the 2nd box, i have the

orginal
cf
removed and a new cf put into place. i do this by playing with the

value
of
the 1st checkbox when the 2nd checkbox is clicked. my problem is if i

only
click the 2nd check box and then uncheck it, the 1st cf is enacted

becasue
the 1st checkbox value changes from false to true. i need to a check

put
into place when i unclick the 2nd checkbox to see if the value of the

1st
checkbox should or should not be true. the check would be if cell D2
contains information then the value of the 1st checkbox should be true
otherwise it should be false.

example if value of cell d2 is true then checkbox1.value = true else
checkbox1.value = false

"Carim" wrote:

Simply type in the cell C3 :
=if(C2="yes",5,10)
HTH
Carim







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 [email protected] Excel Worksheet Functions 1 August 22nd 08 02:04 AM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
data validation to restrict input in cell based on value of cell above that cell NC Excel Programming 2 January 25th 05 07:11 AM


All times are GMT +1. The time now is 11:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"