Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Set a value in multiple cells based on a condition
I am trying to set a value in several cells when a single condition is true.
For example, if A1 = B1, then I want to set all cells C3, D3, E3 and so on to a given value. For instance, when IF(OR(A1<0, B1<0) ... ), I want to set a bunch of cells to zero. (I realize I can put an IF in each of the target cells, but this seems there should be an easier way.) Many thanks for your help. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Set a value in multiple cells based on a condition
You could use a change_event macro to do as desired.
If desired, send your file to my address below. I will only look if: 1. You send a copy of this message on an inserted sheet 2. You give me the newsgroup and the subject line 3. You send a clear explanation of what you want 4. You send before/after examples and expected results. -- Don Guillett Microsoft MVP Excel SalesAid Software "Hickory" wrote in message ... I am trying to set a value in several cells when a single condition is true. For example, if A1 = B1, then I want to set all cells C3, D3, E3 and so on to a given value. For instance, when IF(OR(A1<0, B1<0) ... ), I want to set a bunch of cells to zero. (I realize I can put an IF in each of the target cells, but this seems there should be an easier way.) Many thanks for your help. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Set a value in multiple cells based on a condition
I should have noted that I am using Excel 2003.
"Hickory" wrote: I am trying to set a value in several cells when a single condition is true. For example, if A1 = B1, then I want to set all cells C3, D3, E3 and so on to a given value. For instance, when IF(OR(A1<0, B1<0) ... ), I want to set a bunch of cells to zero. (I realize I can put an IF in each of the target cells, but this seems there should be an easier way.) Many thanks for your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Condition based on multiple cells | Excel Discussion (Misc queries) | |||
Compulsory Cells based on Condition | Excel Discussion (Misc queries) | |||
Sum Cells Based on Condition (2 problems) | Excel Worksheet Functions | |||
Adding cells based on condition | Excel Worksheet Functions | |||
Counting Across Multiple Ranges, Based on Condition | Excel Worksheet Functions |