Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default setting column value based on if statement

hello,
Here is an example i've yet to figure out. in my cell I am looking at
if cell A16= "", if it is true then D16 ="", if it is false then
If(AND(B16=1, C16=1), A16*8, A16*12)
So, my statement would look like the following:
=IF(A16="","",IF(AND(B16="1",C16=1),A16*8,A16*12))
But what i can't figure out is how to set to set the value of a different
cell. For example...
With the above statement where B16 =1 and C16=1 the value of D16 would be
A16*8. When that condition is true I want to be able to set the value of
D15 to A16*4...
Any Idea on how to do that?
Brian


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default setting column value based on if statement

Mybe I'm missing something, but it seems to me that in D16 you should have:
=if(and(B16=1,C16=1),A16*4,0)

Glen

"Brian Shafer" wrote in message
news:4Bzld.607646$8_6.241198@attbi_s04...
hello,
Here is an example i've yet to figure out. in my cell I am looking at
if cell A16= "", if it is true then D16 ="", if it is false then
If(AND(B16=1, C16=1), A16*8, A16*12)
So, my statement would look like the following:
=IF(A16="","",IF(AND(B16="1",C16=1),A16*8,A16*12))
But what i can't figure out is how to set to set the value of a different
cell. For example...
With the above statement where B16 =1 and C16=1 the value of D16 would be
A16*8. When that condition is true I want to be able to set the value of
D15 to A16*4...
Any Idea on how to do that?
Brian



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default setting column value based on if statement

Worksheet formulas can only return a value to the cell that contains the
formula.

You can't change other cells.

But there are alternatives. You could use a little macro that updates other
cells--but you'd have to post some additional information--when should it be run
(on demand--by clicking a button?, whenever the user changes a value in a
certain cell(s), or when the worksheet recalculates (based on formulas
changing))

Brian Shafer wrote:

hello,
Here is an example i've yet to figure out. in my cell I am looking at
if cell A16= "", if it is true then D16 ="", if it is false then
If(AND(B16=1, C16=1), A16*8, A16*12)
So, my statement would look like the following:
=IF(A16="","",IF(AND(B16="1",C16=1),A16*8,A16*12))
But what i can't figure out is how to set to set the value of a different
cell. For example...
With the above statement where B16 =1 and C16=1 the value of D16 would be
A16*8. When that condition is true I want to be able to set the value of
D15 to A16*4...
Any Idea on how to do that?
Brian


--

Dave Peterson
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
if then statement based on another column Ann Excel Worksheet Functions 6 May 28th 08 09:05 PM
Setting up an If-Then Statement that will pull from a valdiated li govols865 Excel Worksheet Functions 2 January 12th 07 10:48 PM
Setting up columns based on a date MIchel Khennafi Excel Worksheet Functions 1 April 25th 06 10:53 PM
I need assistance setting up a "IF" statement mmr Excel Worksheet Functions 3 September 19th 05 03:05 PM
Setting up a statement cosmo investments Setting up and Configuration of Excel 0 May 11th 05 03:26 AM


All times are GMT +1. The time now is 01:35 PM.

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"