Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Compare Two columns

Hello,

I tried to figure this out, seems to me that I'm getting close

I need the formula to look at column AA see if it says O or U, then look at
Column AB and see if it says O or U, then if they both meet this criteria,
then return 1 in AC,

this is what I have so far,

=IF(OR(AA26={"O","U"},AB26={"O","U"}),"1",""), I'm probably off, but it
seems to have started to do something. I was using the And function, but
running out of time.

Regards, thanks to all in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Compare Two columns

Hi Javy

try it

if(and((aa12="O");(ab12="O"));1;if(and((aa12="U"); (ab12="U"));1;if(and((aa12="O");(ab12="U"));1;if(a nd((aa12="U");(ab12="O"));1;""))))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"JavyD" escreveu:

Hello,

I tried to figure this out, seems to me that I'm getting close

I need the formula to look at column AA see if it says O or U, then look at
Column AB and see if it says O or U, then if they both meet this criteria,
then return 1 in AC,

this is what I have so far,

=IF(OR(AA26={"O","U"},AB26={"O","U"}),"1",""), I'm probably off, but it
seems to have started to do something. I was using the And function, but
running out of time.

Regards, thanks to all in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Compare Two columns

One way:

=IF(AND(OR(AA26="O",AA26="U"),OR(AB26="O",AB26="U" )),"1","")

Regards

Trevor


"JavyD" wrote in message
...
Hello,

I tried to figure this out, seems to me that I'm getting close

I need the formula to look at column AA see if it says O or U, then look
at
Column AB and see if it says O or U, then if they both meet this criteria,
then return 1 in AC,

this is what I have so far,

=IF(OR(AA26={"O","U"},AB26={"O","U"}),"1",""), I'm probably off, but it
seems to have started to do something. I was using the And function, but
running out of time.

Regards, thanks to all in advance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Compare Two columns

Thanks Marcelo, Thanks Trevor, Trevor's hit it right on the nail. it looks
the original I was working on, but I had the or trying to pick up the
AA26="O" or "U" together, I see you broke it apart.

Thanks both, this will make life easier.

"Trevor Shuttleworth" wrote:

One way:

=IF(AND(OR(AA26="O",AA26="U"),OR(AB26="O",AB26="U" )),"1","")

Regards

Trevor


"JavyD" wrote in message
...
Hello,

I tried to figure this out, seems to me that I'm getting close

I need the formula to look at column AA see if it says O or U, then look
at
Column AB and see if it says O or U, then if they both meet this criteria,
then return 1 in AC,

this is what I have so far,

=IF(OR(AA26={"O","U"},AB26={"O","U"}),"1",""), I'm probably off, but it
seems to have started to do something. I was using the And function, but
running out of time.

Regards, thanks to all in advance.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Compare Two columns

You're welcome. Thanks for the feedback


"JavyD" wrote in message
...
Thanks Marcelo, Thanks Trevor, Trevor's hit it right on the nail. it
looks
the original I was working on, but I had the or trying to pick up the
AA26="O" or "U" together, I see you broke it apart.

Thanks both, this will make life easier.

"Trevor Shuttleworth" wrote:

One way:

=IF(AND(OR(AA26="O",AA26="U"),OR(AB26="O",AB26="U" )),"1","")

Regards

Trevor


"JavyD" wrote in message
...
Hello,

I tried to figure this out, seems to me that I'm getting close

I need the formula to look at column AA see if it says O or U, then
look
at
Column AB and see if it says O or U, then if they both meet this
criteria,
then return 1 in AC,

this is what I have so far,

=IF(OR(AA26={"O","U"},AB26={"O","U"}),"1",""), I'm probably off, but it
seems to have started to do something. I was using the And function,
but
running out of time.

Regards, thanks to all in advance.






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
How do I compare tow columns of numbers? ken0860 Excel Discussion (Misc queries) 1 June 13th 06 09:18 PM
Excel Formula or tool to compare two columns of data RBS Excel Worksheet Functions 3 April 14th 06 06:54 PM
Compare multiple column of data and list out common and unique component in adj columns kuansheng Excel Worksheet Functions 15 February 1st 06 10:49 PM
Compare 2 columns, and create a list of items that are in both lists ruby2sdy Excel Worksheet Functions 3 October 8th 05 11:04 AM


All times are GMT +1. The time now is 11:56 PM.

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

About Us

"It's about Microsoft Excel"