Solved

if formula

Posted on 2013-12-03
16
286 Views
Last Modified: 2013-12-03
Hi Expert's

need an if formula to do the following. ..

if cell a1 is blank then in if a1 has a value greater then 0 then x
0
Comment
Question by:route217
  • 6
  • 5
  • 3
  • +2
16 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39692632
Do you mean?

=IF(A1>0,"x","")

this will return an x if A1 has a value greater than 0, else it will return a blank, including when A1 is blank.
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 39692633
HI,

=IF(A1="", "in", IF(A1>0,"x"))

Open in new window

Regards
0
 
LVL 4

Assisted Solution

by:andrew_man
andrew_man earned 250 total points
ID: 39692636
=if(A1="",if(A1>0,"x",""),"")
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 23

Expert Comment

by:NBVC
ID: 39692658
andrew_man, if A1 is blank, then how can A1 be greater than 0?

probably Rgonzo interpreted it most correctly.  I didn't catch the OP might want the word "in" if A1 was blank.
0
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 39692665
=IF(A1="","",IF(A1>0,"x",""))
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39692668
Yes, agreed!
0
 

Author Comment

by:route217
ID: 39692678
Sorry experts

Not Woking. ....what I am trying to do is if cell a1 us blank then out...if cell a1 has number 1 or 2 or 3 then in
0
 
LVL 23

Accepted Solution

by:
NBVC earned 250 total points
ID: 39692685
=IF(A1="","out",IF(A1>0,"in",""))

if not working try:

=IF(ISBLANK(A1),"out",IF(A1>0,"in",""))
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39692686
Can explain more clear what is "then in" and "then out"?
0
 

Author Comment

by:route217
ID: 39692689
I.e....the person is in work
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39692691
or

=IF(A1<>"","in","out")
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39692697
=if((A1=1)+(A1=2)+(A1=3),"In",if(A1="","out",""))
0
 

Author Comment

by:route217
ID: 39692704
Nb vc....The formula works but I do not get out if blank
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39692712
Then is it blank or is there a space?

Is this working?

=IF(A1<>" ","in","out")

or:

=IF(TRIM(A1)<>"","in","out")
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39692721
=IF((A1=1)+(A1=2)+(A1=3),"In",IF(TRIM(A1)="","out",""))
0
 
LVL 4

Expert Comment

by:andrew_man
ID: 39694497
Why give me the point? I dun think I can help you.  But, I really want to tell me more actually.

Andrew Man from Hong Kong
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now