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

Hi Folks - I have data like this:

A B
34 56
blank 44
23 blank
blank blank


When both columns have numbers, condition is TRUE, other wise FALSE. I've
experimented with ISNUMBER and ISBLANK with out luck. Any ideas? Thanks.


--
Michael


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Compare Two Columns

=count(a1:b1)=2

Would be one way.



Michael Laferriere wrote:

Hi Folks - I have data like this:

A B
34 56
blank 44
23 blank
blank blank

When both columns have numbers, condition is TRUE, other wise FALSE. I've
experimented with ISNUMBER and ISBLANK with out luck. Any ideas? Thanks.

--
Michael


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Compare Two Columns

Try

=AND(ISNUMBER(B1),ISNUMBER(A1))



"Michael Laferriere" wrote:

Hi Folks - I have data like this:

A B
34 56
blank 44
23 blank
blank blank


When both columns have numbers, condition is TRUE, other wise FALSE. I've
experimented with ISNUMBER and ISBLANK with out luck. Any ideas? Thanks.


--
Michael



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

Try =AND(a1<"",b1<"")
--
John
MOS Master Instructor
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Michael Laferriere" wrote:

Hi Folks - I have data like this:

A B
34 56
blank 44
23 blank
blank blank


When both columns have numbers, condition is TRUE, other wise FALSE. I've
experimented with ISNUMBER and ISBLANK with out luck. Any ideas? Thanks.


--
Michael



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 605
Default Compare Two Columns

This is a good solution based on the OP's data set. However, there may be a problem when the data set changes to include *text* and the OP still wants

When both columns have numbers, condition is TRUE ...... <<


Just my 2 cents.

Epinn

"john the confused" wrote in message ...
Try =AND(a1<"",b1<"")
--
John
MOS Master Instructor
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Michael Laferriere" wrote:

Hi Folks - I have data like this:

A B
34 56
blank 44
23 blank
blank blank


When both columns have numbers, condition is TRUE, other wise FALSE. I've
experimented with ISNUMBER and ISBLANK with out luck. Any ideas? Thanks.


--
Michael






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 605
Default Compare Two Columns

I better elaborate. When I said "text" I meant "not numbers" e.g. abc, xyz.

If the OP has numbers in *text format*, (i.e. format the cell as text and then key in 123 which will be left aligned), then John's formula will be able to catch it whereas the other formulae won't.

It all depends on what kind of data set the OP has and what he/she truly wants.

I felt like picking my brain and sharing what I saw. I am always amazed by the fact that there are so many ways to solve a problem in Excel.

Thank you for reading.

Epinn

"Epinn" wrote in message ...
This is a good solution based on the OP's data set. However, there may be a problem when the data set changes to include *text* and the OP still wants

When both columns have numbers, condition is TRUE ...... <<


Just my 2 cents.

Epinn

"john the confused" wrote in message ...
Try =AND(a1<"",b1<"")
--
John
MOS Master Instructor
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Michael Laferriere" wrote:

Hi Folks - I have data like this:

A B
34 56
blank 44
23 blank
blank blank


When both columns have numbers, condition is TRUE, other wise FALSE. I've
experimented with ISNUMBER and ISBLANK with out luck. Any ideas? Thanks.


--
Michael





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 05:23 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"