if formula to set cell values

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

if formula to set cell values

Post by Robie »

Hi

I am sure this is simple to someone who knows Excel. I can create formulas where I insert the 'if' formula true/values in the same column as the formula but don't know how to do it so that the true/false values are inserted in a *different* column.

I need to set column J with a value of 18 if column F says "Yes". But, the kicker is that I need to have this formula in column *M* (as column J has other values in it).

Thanks.

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: if formula to set cell values

Post by Rudi »

A formula can only output values in the cell in which the formula resides. Either the formula will need to exist in J and output various values based on multiple conditions, or the value will need to be overwritten using a macro that evaluates the needed condition.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
HansV
Administrator
Posts: 78870
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: if formula to set cell values

Post by HansV »

A formula in a cell can only return a value in that cell, not in another cell.
You might use the Camera tool to display the value of for example M3 on top of cell J3. Cell J3 would keep its original value, but you won't see that because of the "picture" of cell M3 on top of it.
See for example Camera Tool Function In Excel 2010.
Best wishes,
Hans

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

Re: if formula to set cell values

Post by Robie »

Thanks Ruid and Hans. I will take a look at the camera tool and see if I can make use of it.

Thanks once again.

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: if formula to set cell values

Post by Rudi »

If you add a "D" in from of the name you call me above, I might be able to conjure up some magic to make Excel do what you need. :laugh:
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

Re: if formula to set cell values

Post by Robie »

Rudi wrote:If you add a "D" in from of the name you call me above, I might be able to conjure up some magic to make Excel do what you need. :laugh:
hahahaha. Sorry about that Rudi (I see that you use the 'd' before 'i' except after 'e' rule). :grin:

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: if formula to set cell values

Post by Rudi »

Gosh... and I overlooked an error to! I obviously meant 'front' instead of 'from'. :groan:
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.