ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Create a conditional formula that results in another calculation (https://www.excelbanter.com/excel-worksheet-functions/200861-create-conditional-formula-results-another-calculation.html)

dyrret

Create a conditional formula that results in another calculation
 
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83


T. Valko

Create a conditional formula that results in another calculation
 
Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83




dyrret

Create a conditional formula that results in another calculati
 
Thankyou,
Works wonderfully and makes sense when I see it. I was trying to construct
something too complicated....missed the more straight forward answer.
dyrret

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83





dyrret

Create a conditional formula that results in another calculati
 
One question re the answer: I understand what is being "said" except the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83





David Biddulph[_2_]

Create a conditional formula that results in another calculati
 
That's an empty string, so if you have no data in A or B your result will be
blank instead of zero or the boolean FALSE.
--
David Biddulph

"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83







T. Valko

Create a conditional formula that results in another calculati
 
If *neither* cell contains a number then the formula returns a blank. The ""
is the syntax for "blank". If you'd rather have a 0 returned:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,0))

Or, you could return an informational message like "no value entered":

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,"no value entered"))

Using the COUNT function ensures that a number has been entered in one or
the other cells. It prevents errors if someone accidentally enters a text
string or if one of the cells already contains an error. It may not be
necessary but it makes things robust and doesn't add undue complexity to the
formula.


--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83







dyrret

Create a conditional formula that results in another calculati
 
Thanks again.

"T. Valko" wrote:

If *neither* cell contains a number then the formula returns a blank. The ""
is the syntax for "blank". If you'd rather have a 0 returned:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,0))

Or, you could return an informational message like "no value entered":

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,"no value entered"))

Using the COUNT function ensures that a number has been entered in one or
the other cells. It prevents errors if someone accidentally enters a text
string or if one of the cells already contains an error. It may not be
necessary but it makes things robust and doesn't add undue complexity to the
formula.


--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83








dyrret

Create a conditional formula that results in another calculati
 
Thank you.....seeing examples and getting explanations is helping me learn.

"David Biddulph" wrote:

That's an empty string, so if you have no data in A or B your result will be
blank instead of zero or the boolean FALSE.
--
David Biddulph

"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83








T. Valko

Create a conditional formula that results in another calculati
 
You're welcome!

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
Thanks again.

"T. Valko" wrote:

If *neither* cell contains a number then the formula returns a blank. The
""
is the syntax for "blank". If you'd rather have a 0 returned:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,0))

Or, you could return an informational message like "no value entered":

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,"no value entered"))

Using the COUNT function ensures that a number has been entered in one or
the other cells. It prevents errors if someone accidentally enters a text
string or if one of the cells already contains an error. It may not be
necessary but it makes things robust and doesn't add undue complexity to
the
formula.


--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except
the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in
this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation
B(n)*.83










JC-PS

Create a conditional formula that results in another calculati
 


"T. Valko" wrote:

You're welcome!

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
Thanks again.

"T. Valko" wrote:

If *neither* cell contains a number then the formula returns a blank. The
""
is the syntax for "blank". If you'd rather have a 0 returned:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,0))

Or, you could return an informational message like "no value entered":

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,"no value entered"))

Using the COUNT function ensures that a number has been entered in one or
the other cells. It prevents errors if someone accidentally enters a text
string or if one of the cells already contains an error. It may not be
necessary but it makes things robust and doesn't add undue complexity to
the
formula.


--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except
the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in
this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation
B(n)*.83









Hello T. Valko.

I just went through the formula on the discussion of 08-31-08 responding to
dyrret asking:
"I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83"


So do I. I'm learning use Excel WorkSheet. But instead of a column as
mentioned before, I need a single cell like
AB shows on decimal equivalent of minutes or hour with minutes, example,

AC -- 15 minutes = mathematical formula would be, 15 x .01666667 = .25---
this decimal equivalent

of 15 min
AC -- 1hour 35minutes (1.35) = 1.583 this results on AB, and minutes on AC.
I tried modified the one suggested here before but failed.

Any help will be significant.

JC-PS

Create a conditional formula that results in another calculati
 


"JC-PS" wrote:



"T. Valko" wrote:

You're welcome!

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
Thanks again.

"T. Valko" wrote:

If *neither* cell contains a number then the formula returns a blank. The
""
is the syntax for "blank". If you'd rather have a 0 returned:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,0))

Or, you could return an informational message like "no value entered":

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,"no value entered"))

Using the COUNT function ensures that a number has been entered in one or
the other cells. It prevents errors if someone accidentally enters a text
string or if one of the cells already contains an error. It may not be
necessary but it makes things robust and doesn't add undue complexity to
the
formula.


--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
One question re the answer: I understand what is being "said" except
the
double quotation marks.

"T. Valko" wrote:

Try this:

=IF(COUNT(A2),A2/4.54,IF(COUNT(B2),B2*0.83,""))

--
Biff
Microsoft Excel MVP


"dyrret" wrote in message
...
I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in
this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation
B(n)*.83









Hello T. Valko.

I just went through the formula on the discussion of 08-31-08 responding to
dyrret asking:
"I'm just learning to use Excel.

I want to enter data in either column A (litres) OR column B (US
gallons).
Column C will convert to imperial gallons.

I would like to create a formula in column C that would result in this
logic:

IF there is data in cell "A(n)" then do calculation A(n)/4.54, if no
data
in A(n) and there is data in cell "B(n)" then do calculation B(n)*.83"


So do I. I'm learning use Excel WorkSheet. But instead of a column as
mentioned before, I need a single cell like
AB shows on decimal equivalent of minutes or hour with minutes, example,

AC -- 15 minutes = mathematical formula would be, 15 x .01666667 = .25---
this decimal equivalent

of 15 min
AC -- 1hour 35minutes (1.35) = 1.583 this results on AB, and minutes on AC.
I tried modified the one suggested here before but failed.

Any help will be significant.


Thanks T. Valko, I already found it,
=IF(COUNT(AB19),AB19*(AC9),"<<Enter Time").


JIMMYT

hi guys,

i think this thread may be the place i need to find out a similar conditional formula,


i need a cell (K) to make a calculation based on IF the previous cell (I) goes below 1.5 X the value of a cell (J) - the calculation needs to be the difference between cell (I) and 1.5 X the value of cell (J)

IF it isnt below 1.5 X cell (J) THEN return blank cell

i think thats what i need i might be overthinking this but any help would be appreciated.

thanks

jimmy


All times are GMT +1. The time now is 02:22 AM.

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