Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Changing cell values based on another cell

My question is lets say I want to get the sum of A1 and A2 and send the sum
to cell B5. How do I send or change the value of a cell without having my
equation in that cell.

another example my be that I do and IF statement and if I get a certain
result I want to clear cell B5. How do I do this please!

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Changing cell values based on another cell

FORMULAs only return values. In order to modify the cell the formula must be
in that cell. Otherwise use a macro.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"gfreed" wrote in message
...
My question is lets say I want to get the sum of A1 and A2 and send the
sum
to cell B5. How do I send or change the value of a cell without having my
equation in that cell.

another example my be that I do and IF statement and if I get a certain
result I want to clear cell B5. How do I do this please!

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Changing cell values based on another cell

Hi

A formula can only return a value to the cell where the formula itself is
located.

If you are saying you want the result to be blank under certain conditions,
then in B5
=IF(A1+A2100,"",A1+A2)
This would leave cell B5 empty, if A1+A2 exceeded 100
or
IF(AND(A1+A2=20,A1+A2<=80),A1+A2,"")
In this case, if A1+A2 are between 20 and 80 inclusive, then show the
result, otherwise leave the cell empty.

is this what you mean?
--
Regards
Roger Govier

"gfreed" wrote in message
...
My question is lets say I want to get the sum of A1 and A2 and send the
sum
to cell B5. How do I send or change the value of a cell without having my
equation in that cell.

another example my be that I do and IF statement and if I get a certain
result I want to clear cell B5. How do I do this please!

Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Changing cell values based on another cell

As you say, a formula can only return value to the cell where the formula
itself is located. So in saying this you mean that the SUM of two cells can
only be displayed in the cell where the formula is located! I've been reading
about LINKING cells so that cells will display the results of a cell with the
formula but I'm not sure yet. thanks for your help! :)

"Roger Govier" wrote:

Hi

A formula can only return a value to the cell where the formula itself is
located.

If you are saying you want the result to be blank under certain conditions,
then in B5
=IF(A1+A2100,"",A1+A2)
This would leave cell B5 empty, if A1+A2 exceeded 100
or
IF(AND(A1+A2=20,A1+A2<=80),A1+A2,"")
In this case, if A1+A2 are between 20 and 80 inclusive, then show the
result, otherwise leave the cell empty.

is this what you mean?
--
Regards
Roger Govier

"gfreed" wrote in message
...
My question is lets say I want to get the sum of A1 and A2 and send the
sum
to cell B5. How do I send or change the value of a cell without having my
equation in that cell.

another example my be that I do and IF statement and if I get a certain
result I want to clear cell B5. How do I do this please!

Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Changing cell values based on another cell

As you say, a formula can only return value to the cell where the formula
itself is located. So in saying this you mean that the SUM of two cells can
only be displayed in the cell where the formula is located! I've been reading
about LINKING cells so that cells will display the results of a cell with the
formula but I'm not sure yet. thanks for your help! :)


"Roger Govier" wrote:

Hi

A formula can only return a value to the cell where the formula itself is
located.

If you are saying you want the result to be blank under certain conditions,
then in B5
=IF(A1+A2100,"",A1+A2)
This would leave cell B5 empty, if A1+A2 exceeded 100
or
IF(AND(A1+A2=20,A1+A2<=80),A1+A2,"")
In this case, if A1+A2 are between 20 and 80 inclusive, then show the
result, otherwise leave the cell empty.

is this what you mean?
--
Regards
Roger Govier

"gfreed" wrote in message
...
My question is lets say I want to get the sum of A1 and A2 and send the
sum
to cell B5. How do I send or change the value of a cell without having my
equation in that cell.

another example my be that I do and IF statement and if I get a certain
result I want to clear cell B5. How do I do this please!

Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Changing cell values based on another cell

Yes, but if you Link the same applies
Say you put the following formula in cell A1 of Sheet2
=Sheet1!B5
That would return the value that is located in cell B5 of Sheet1, but that
is a formula itself, returning the value created by a formula in another
cell.

--
Regards
Roger Govier

"gfreed" wrote in message
...
As you say, a formula can only return value to the cell where the formula
itself is located. So in saying this you mean that the SUM of two cells
can
only be displayed in the cell where the formula is located! I've been
reading
about LINKING cells so that cells will display the results of a cell with
the
formula but I'm not sure yet. thanks for your help! :)


"Roger Govier" wrote:

Hi

A formula can only return a value to the cell where the formula itself is
located.

If you are saying you want the result to be blank under certain
conditions,
then in B5
=IF(A1+A2100,"",A1+A2)
This would leave cell B5 empty, if A1+A2 exceeded 100
or
IF(AND(A1+A2=20,A1+A2<=80),A1+A2,"")
In this case, if A1+A2 are between 20 and 80 inclusive, then show the
result, otherwise leave the cell empty.

is this what you mean?
--
Regards
Roger Govier

"gfreed" wrote in message
...
My question is lets say I want to get the sum of A1 and A2 and send the
sum
to cell B5. How do I send or change the value of a cell without having
my
equation in that cell.

another example my be that I do and IF statement and if I get a certain
result I want to clear cell B5. How do I do this please!

Thanks.



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
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Discussion (Misc queries) 7 June 8th 07 09:32 PM
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Worksheet Functions 7 June 8th 07 09:32 PM
Format cell color based on multiple cell values Zenaida Excel Discussion (Misc queries) 1 May 10th 06 07:31 PM
Changing values in a row based on a cell in the row. Casey Excel Discussion (Misc queries) 2 September 14th 05 03:23 PM
changing value of a cell based on another cell color Gary Excel Discussion (Misc queries) 2 January 30th 05 10:19 AM


All times are GMT +1. The time now is 10:14 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"