hi to everyone,i need a formula at B:B which follows A:A and if at A=any number write at B=2 or if A=0 to writeat B=1.thanks
hi to everyone,i need a formula at B:B which follows A:A and if at A=any number write at B=2 or if A=0 to writeat B=1.thanks
In B1 copied down:
=IF(A1>0,2,1)
You may need this version for your locale:
=IF(A1>0;2;1)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
thanks ,but at A10 it shows 1,i want when A is empty B to be empty
You didn't say that, though, did you?
Try this:
=IF(A1="","",IF(A1>0,2,1))
For your locale:
=IF(A1="";"";IF(A1>0;2;1))
This is a basic nested IF formula.
then just add this to Ali's formula... =IF(A1="","",IF(A1>0,2,1))
or her other formula =IF(A1="";"";IF(A1>0;2;1))
wasn't sure if Ali was working another post so thought I'd help out, not needed. LOL.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
thanks ,excelent
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
B2=IF(ISBLANK(A1),"",IF(OR(SIGN(A1)=1,SIGN(A1)=-1),2,1))
Copy down
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks