ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Two Formulas for One Cell Using IF (https://www.excelbanter.com/excel-worksheet-functions/110008-two-formulas-one-cell-using-if.html)

Andrew C

Two Formulas for One Cell Using IF
 
Hello,

I am having a time with this one. I am close, but just can't get there. I
have 5 columns A, B, C, D, and E. If A1 has a value, E1 would equal
(A1-C1)/C1. If B1 has a value, E1 would equal (B1-D1)/D1. If column A has a
value, C will not and vice-versa. How would I do a formula for this?

I appreciate any help in this.

Thank you,
--
Andrew C

PCLIVE

Two Formulas for One Cell Using IF
 
One way,

=IF(A1="",(B1-D1)/D1,(A1-C1)/C1)

HTH,
Paul


"Andrew C" wrote in message
...
Hello,

I am having a time with this one. I am close, but just can't get there.
I
have 5 columns A, B, C, D, and E. If A1 has a value, E1 would equal
(A1-C1)/C1. If B1 has a value, E1 would equal (B1-D1)/D1. If column A
has a
value, C will not and vice-versa. How would I do a formula for this?

I appreciate any help in this.

Thank you,
--
Andrew C




Andrew C

Two Formulas for One Cell Using IF
 
Thank you, that worked fine!
--
Andrew C


"PCLIVE" wrote:

One way,

=IF(A1="",(B1-D1)/D1,(A1-C1)/C1)

HTH,
Paul


"Andrew C" wrote in message
...
Hello,

I am having a time with this one. I am close, but just can't get there.
I
have 5 columns A, B, C, D, and E. If A1 has a value, E1 would equal
(A1-C1)/C1. If B1 has a value, E1 would equal (B1-D1)/D1. If column A
has a
value, C will not and vice-versa. How would I do a formula for this?

I appreciate any help in this.

Thank you,
--
Andrew C






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

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