Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Update on Worksheet_change with data from other sheets?


Hi all, another question..

Here's my scenario:

I have a series of data eneterd onto one sheet of my workbook

What i need to happen is when cells in another worksheet are updated,
access the 1st workbook's cooresponding cells and update cells adjacent
to them.

It's like this:

Worksheet("1").Range("A1:A10") has data in it.

As data is entered into Worksheet("2").Range("D1:D10") I need _
worksheet("2").Range("E1:E10") updated with a calculation involving
_
worksheet("1").Range("A1:A10") and worksheet("2").Range(D1:D10")

Specifically, when worksheet2.D1 is updated, I need to divide that
value by the value in worksheet1.A1 and put the result in
worksheet2.E1, and so on down to N10

I can't just use a formula on row E because sheet2 and on are created
dynamically by the user based on input on sheet1, and leaving a raw
formula on the column results in a div 0 error on empty cells, which
screws up another trigger that I have to format the column E cell on
certain values...

?_?


--
Ouka
------------------------------------------------------------------------
Ouka's Profile: http://www.excelforum.com/member.php...o&userid=23988
View this thread: http://www.excelforum.com/showthread...hreadid=380272

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Update on Worksheet_change with data from other sheets?

I do not see why you cannot use a conditional formula such as the
following....

=IF(Sheet1!A10,D1/Sheet1!A1,0)

it avoids the division by zero issue, if you wanted cells E1 (etc) to be
blank instead of a zero use ....

=IF(Sheet1!A10,D1/Sheet1!A1,"")

or maybe I didn't understand your problem?
--
Cheers
Nigel



"Ouka" wrote in message
...

Hi all, another question..

Here's my scenario:

I have a series of data eneterd onto one sheet of my workbook

What i need to happen is when cells in another worksheet are updated,
access the 1st workbook's cooresponding cells and update cells adjacent
to them.

It's like this:

Worksheet("1").Range("A1:A10") has data in it.

As data is entered into Worksheet("2").Range("D1:D10") I need _
worksheet("2").Range("E1:E10") updated with a calculation involving
_
worksheet("1").Range("A1:A10") and worksheet("2").Range(D1:D10")

Specifically, when worksheet2.D1 is updated, I need to divide that
value by the value in worksheet1.A1 and put the result in
worksheet2.E1, and so on down to N10

I can't just use a formula on row E because sheet2 and on are created
dynamically by the user based on input on sheet1, and leaving a raw
formula on the column results in a div 0 error on empty cells, which
screws up another trigger that I have to format the column E cell on
certain values...

?_?


--
Ouka
------------------------------------------------------------------------
Ouka's Profile:

http://www.excelforum.com/member.php...o&userid=23988
View this thread: http://www.excelforum.com/showthread...hreadid=380272



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
How do I update links from .xls sheets to .xlms sheets June Excel Worksheet Functions 2 April 21st 10 08:57 PM
How to update data from multiple sheets to one specific sheets Khawajaanwar Excel Discussion (Misc queries) 4 January 15th 10 07:31 AM
Combine 2 sheets into 1 that will update w/new data Ms. Von Excel Worksheet Functions 2 June 23rd 08 04:12 PM
Creating an "update" button and using a macro to copy data from multiple sheets SPIRITTTJ Excel Programming 1 January 8th 04 05:50 PM
Can an add-in macro update a worksheets Worksheet_Change function? strataguru Excel Programming 1 October 4th 03 07:06 PM


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

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"