Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My mistake, I meant that the rows would be Sheet1!B1:AE1
That would make a big difference. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It works!!! Its alive!!!
Now i feel a little stupid. But thanks Tom |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comparing multiple column values | Excel Worksheet Functions | |||
Formula for comparing rows in a column | Excel Discussion (Misc queries) | |||
Way to put multiple rows into the same column. | Excel Discussion (Misc queries) | |||
Multiple rows to one column | Excel Programming | |||
Problem when trying to convert one column with multiple rows to one row with multiple column | Excel Programming |