ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if then (https://www.excelbanter.com/excel-worksheet-functions/173834-if-then.html)

vdmbqb

if then
 
I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then formulas
--
bob

Don Guillett

if then
 

Look in the help index for IF

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"vdmbqb" wrote in message
...
I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then
formulas
--
bob



Gaurav[_2_]

if then
 
=IF(A10,1,"")

This will return 1 if the value in A1 is greater than 0 and Blank if it is
not greater than 0.



"vdmbqb" wrote in message
...
I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then
formulas
--
bob




Gaurav[_2_]

if then
 
Oh I guess you want same value to be ruturned. use =IF(A10,A1,"")


"Gaurav" wrote in message
...
=IF(A10,1,"")

This will return 1 if the value in A1 is greater than 0 and Blank if it is
not greater than 0.



"vdmbqb" wrote in message
...
I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then
formulas
--
bob






Teethless mama

if then
 
Your formula will fail if A1 contain text

Here is the correction:
=IF(AND(ISNUMBER(A1),A10),A1,"")


"Gaurav" wrote:

Oh I guess you want same value to be ruturned. use =IF(A10,A1,"")


"Gaurav" wrote in message
...
=IF(A10,1,"")

This will return 1 if the value in A1 is greater than 0 and Blank if it is
not greater than 0.



"vdmbqb" wrote in message
...
I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then
formulas
--
bob







Rick Rothstein \(MVP - VB\)

if then
 
This also seems to work...

=IF(MAX(A1,0)0,A1,"")

Rick


"Teethless mama" wrote in message
...
Your formula will fail if A1 contain text

Here is the correction:
=IF(AND(ISNUMBER(A1),A10),A1,"")


"Gaurav" wrote:

Oh I guess you want same value to be ruturned. use =IF(A10,A1,"")


"Gaurav" wrote in message
...
=IF(A10,1,"")

This will return 1 if the value in A1 is greater than 0 and Blank if it
is
not greater than 0.



"vdmbqb" wrote in message
...
I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then
formulas
--
bob








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

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