Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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
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
Condition based on multiple cells WAR Excel Discussion (Misc queries) 4 November 20th 09 04:04 PM
Compulsory Cells based on Condition axissm Excel Discussion (Misc queries) 5 December 7th 06 11:53 PM
Sum Cells Based on Condition (2 problems) Dave Y Excel Worksheet Functions 3 November 5th 06 01:46 AM
Adding cells based on condition Ted Metro Excel Worksheet Functions 1 June 22nd 05 09:15 PM
Counting Across Multiple Ranges, Based on Condition Stacy Excel Worksheet Functions 2 June 22nd 05 08:35 PM


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

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

About Us

"It's about Microsoft Excel"