ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula in a cell depending on the value of another cell (https://www.excelbanter.com/excel-discussion-misc-queries/233452-formula-cell-depending-value-another-cell.html)

WvR

Formula in a cell depending on the value of another cell
 
I have two different formulas (which contain multiple IF statements) that I
am using in my worksheet. Which one of those formulas that I want the cell
to use depends on the value in another cell.

For example, let's say the two formulas I'm working with a
(1) =IF(C7*D719,"CRITICAL","PRIORITY")
(2) =IF(C7*D710,"CRITICAL","PRIORITY")


I want cell G7 to use formula #1 above if the value of cell A7 is "N/A";
otherwise, I want cell G7 to use formula #2.

Can I do this in Excel?

Thanks!

Jacob Skaria

Formula in a cell depending on the value of another cell
 
In G7 enter

=IF(C7*D7IF(ISNA(A7),19,10),"CRITICAL","PRIORITY" )

If this post helps click Yes
---------------
Jacob Skaria


"WVR" wrote:

I have two different formulas (which contain multiple IF statements) that I
am using in my worksheet. Which one of those formulas that I want the cell
to use depends on the value in another cell.

For example, let's say the two formulas I'm working with a
(1) =IF(C7*D719,"CRITICAL","PRIORITY")
(2) =IF(C7*D710,"CRITICAL","PRIORITY")


I want cell G7 to use formula #1 above if the value of cell A7 is "N/A";
otherwise, I want cell G7 to use formula #2.

Can I do this in Excel?

Thanks!


WvR

Formula in a cell depending on the value of another cell
 
Your reply was helpful; however, I don't think it will solve my
problem.....only b/c the two formulas I'm working with are very complex (for
me anyway) nested if statements. The actual formulas a

(1)
=IF(OR(E7="",F7=""),"",IF(E7*F719,"CRITICAL",IF(E 7*F712,"PRIORITY",IF(AND(E7*F7=12,E7=4),"PRIORITY ",IF(E7*F78,"IMPORTANT",IF(E7*F74,"MODERATE","EF FECTIVE"))))))


(2)
=IF(OR(E7="",F7=""),"",IF(AND(E7=5,F72),"CRITICAL ",IF(AND(E72,F72),"PRIORITY",IF(E7*F7=10,"IMPORT ANT",IF(AND(E7*F7=8,E7=2),"IMPORTANT",IF(E7*F74," MODERATE",IF(AND(E7*F7=4,E7=1),"MODERATE","EFFECTI VE")))))))


I want cell J7 to use formula (1) above if the value of cell C7 is blank or
"N/A".


Can I do that?

Thanks!


"Jacob Skaria" wrote:

In G7 enter

=IF(C7*D7IF(ISNA(A7),19,10),"CRITICAL","PRIORITY" )

If this post helps click Yes
---------------
Jacob Skaria


"WVR" wrote:

I have two different formulas (which contain multiple IF statements) that I
am using in my worksheet. Which one of those formulas that I want the cell
to use depends on the value in another cell.

For example, let's say the two formulas I'm working with a
(1) =IF(C7*D719,"CRITICAL","PRIORITY")
(2) =IF(C7*D710,"CRITICAL","PRIORITY")


I want cell G7 to use formula #1 above if the value of cell A7 is "N/A";
otherwise, I want cell G7 to use formula #2.

Can I do this in Excel?

Thanks!



All times are GMT +1. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com