Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Comparing Absolute Column on multiple rows

Hi guys,

I'm trying to run a check between two worksheets. One worksheet
contains a column of serial numbers. On the second worksheet, i have a
column of companies (100 different companies) and multiple rows (For
the sake of this example, 30 rows) of serial numbers assigned to them.

I've tried nesting a IF loop within a sum

=(SUM(IF(Sheet2!$A$1:$A$20=Sheet1!B2:B30,1,0)))

But apparently, that doesn't work. Just any way to flag the rows that
contain the serial numbers that I am looking up would help. Thanks.


-Simon

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Comparing Absolute Column on multiple rows

=SUM(IF(Sheet2!$A$1:$A$20=TRANSPOSE(Sheet1!$B$1:$B $30),1,0))

enter/commit with Ctrl+Shift+Enter rather than just enter since this is an
array formula

--
Regards,
Tom Ogilvy


"mortals" wrote in message
oups.com...
Hi guys,

I'm trying to run a check between two worksheets. One worksheet
contains a column of serial numbers. On the second worksheet, i have a
column of companies (100 different companies) and multiple rows (For
the sake of this example, 30 rows) of serial numbers assigned to them.

I've tried nesting a IF loop within a sum

=(SUM(IF(Sheet2!$A$1:$A$20=Sheet1!B2:B30,1,0)))

But apparently, that doesn't work. Just any way to flag the rows that
contain the serial numbers that I am looking up would help. Thanks.


-Simon



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Comparing Absolute Column on multiple rows

My mistake, I meant that the rows would be Sheet1!B1:AE1

That would make a big difference.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Comparing Absolute Column on multiple rows

=SUM(IF(Sheet2!$A$1:$A$20=Sheet1!$B$1:$AE$1,1,0))

Should work when entered/committed with Ctrl+Shift+Enter rather than just
enter.

--
Regards,
Tom Ogilvy


"mortals" wrote in message
ups.com...
My mistake, I meant that the rows would be Sheet1!B1:AE1

That would make a big difference.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Comparing Absolute Column on multiple rows

It works!!! Its alive!!!

Now i feel a little stupid. But thanks Tom



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
Comparing multiple column values MaryZZZ Excel Worksheet Functions 7 June 20th 07 10:18 PM
Formula for comparing rows in a column TotallyConfused Excel Discussion (Misc queries) 3 January 3rd 06 08:23 PM
Way to put multiple rows into the same column. Peter Brown Excel Discussion (Misc queries) 3 March 31st 05 06:52 AM
Multiple rows to one column Trip Levert Excel Programming 6 June 2nd 04 03:13 PM
Problem when trying to convert one column with multiple rows to one row with multiple column marcello Excel Programming 1 February 23rd 04 03:03 AM


All times are GMT +1. The time now is 03:08 AM.

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"