I am trying to use the following OR syntax:
=if(or(b2="RW","MW","WZ","WZk","Expenditure","Income"))
where is B2 I have one of the values noted in the brackets. For some reason I get an error for the OR syntax.
Please assist.
Thanks,
Shai
I am trying to use the following OR syntax:
=if(or(b2="RW","MW","WZ","WZk","Expenditure","Income"))
where is B2 I have one of the values noted in the brackets. For some reason I get an error for the OR syntax.
Please assist.
Thanks,
Shai
perhaps
=IF(OR(B2={"RW","MW","WZ","WZk"}),"Expenditure","Income")
If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
It gives me the "Income" rather than "Expenditure", although in cell B2 I have a value of "RW".
But it is working here ok. Do check again![]()
You've may have a space or CHR(160) in B2, henc "RW " does not equal "RW"
in a blank cell enter
=(B2="RW")
If it says FALSE then B2 is definitely not "RW"
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
I have no left space, and it still does not work.
Please provide spreadsheet![]()
What shukla said - all 3 times. And adding to Special-K, a technique I use is something like
a5=1
a6=a5+1
a7=a6+1
etc., copied down
b5=code(mid($B$2,a5,1))
and copy down
Then at least I see the true ASCII content of B2. Sometimes it awakens me to the letter 'ell' (l) vs. one(1), or 0 vs. O, etc.
Chip, if you can read this, you're STILL making the world a better place with your immeasurably valuable gifts. Every week, you continue to help me (and untold numbers of others) tremendously. Practically no alternative outlets can match your effectiveness, even over the vast number of topics you demystify and empower usage of. You were, and still are, amazing.
Hi shaibn,
Perhaps you need wildcard:
=IF(SUM(COUNTIF(B2,"*"&{"RW","MW","WZ","WZk"}&"*")),"Expenditure","Income")
or with simplified:
=SIGN(SUM(COUNTIF(B2,"*"&{"RW","MW","WZ","WZk"}&"*")))
Format the cell as:
"Expenditure";;"Income"
Blessing
Last edited by Khalidngo; 03-03-2016 at 04:03 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks