#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default 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





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default 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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"