ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   if then formula (https://www.excelbanter.com/excel-discussion-misc-queries/239969-if-then-formula.html)

vdmbqb

if then formula
 
Very simply put;

I need to return a value in A1.

If the amount in B1 is greater than zero A1 should return the value in B1.

But, if the cell B1 is blank, then A1 should return the amount in C1.

TIA
bob

Dave Peterson

if then formula
 
You could use a formula in A1:

=if(b10,B1,if(b1="",c1,"What Happens If B1 is 0 or Negative"))



vdmbqb wrote:

Very simply put;

I need to return a value in A1.

If the amount in B1 is greater than zero A1 should return the value in B1.

But, if the cell B1 is blank, then A1 should return the amount in C1.

TIA
bob


--

Dave Peterson

T. Valko

if then formula
 
What if B1 is 0 or less?

If B1 will only be numbers =0 or an empty/blank cell:

=IF(N(B1),B1,C1)

--
Biff
Microsoft Excel MVP


"vdmbqb" wrote in message
...
Very simply put;

I need to return a value in A1.

If the amount in B1 is greater than zero A1 should return the value in B1.

But, if the cell B1 is blank, then A1 should return the amount in C1.

TIA
bob





All times are GMT +1. The time now is 05:22 PM.

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