#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default If then question


Column A Column B
A -
VOA C
OA C
VA Y
VO -
VO C

I want a formula which will return a 1 if there is an "A" in column A and is
not "-" in column B nad a zero if both those conditions are not met. So in
the example above, the 2nd, 3rd, and 4th rows would return a 1 and the 1st,
5th, and 6th rows would return a 0.

Help please.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default If then question

Try this:

=IF(OR(ISERROR(FIND("A",A1)),B1="-"),0,1)

HTH,
Elkar


"Sung" wrote:


Column A Column B
A -
VOA C
OA C
VA Y
VO -
VO C

I want a formula which will return a 1 if there is an "A" in column A and is
not "-" in column B nad a zero if both those conditions are not met. So in
the example above, the 2nd, 3rd, and 4th rows would return a 1 and the 1st,
5th, and 6th rows would return a 0.

Help please.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default If then question

in column c:

=IF(AND(ISNUMBER(FIND("A",A2)),B2<"-"),1,0)

HTH

"Sung" wrote:


Column A Column B
A -
VOA C
OA C
VA Y
VO -
VO C

I want a formula which will return a 1 if there is an "A" in column A and is
not "-" in column B nad a zero if both those conditions are not met. So in
the example above, the 2nd, 3rd, and 4th rows would return a 1 and the 1st,
5th, and 6th rows would return a 0.

Help please.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default If then question

Thanks to both of you for your help.

"Sung" wrote:


Column A Column B
A -
VOA C
OA C
VA Y
VO -
VO C

I want a formula which will return a 1 if there is an "A" in column A and is
not "-" in column B nad a zero if both those conditions are not met. So in
the example above, the 2nd, 3rd, and 4th rows would return a 1 and the 1st,
5th, and 6th rows would return a 0.

Help please.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Question Zsolt Szabó Excel Discussion (Misc queries) 1 December 19th 06 10:45 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Question metaltecks Excel Discussion (Misc queries) 2 March 29th 06 08:48 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
Question about {} Petro Excel Worksheet Functions 2 August 15th 05 04:58 PM


All times are GMT +1. The time now is 03:24 PM.

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"