ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Determining Row number where two conditions match (https://www.excelbanter.com/excel-programming/365232-determining-row-number-where-two-conditions-match.html)

Barb Reinhardt

Determining Row number where two conditions match
 
I have about 50 read only workbooks and I want to find the row number where
the following condition matches:

Value in column A = "VAL A"
Value in column B = "VAL B"

This is unique in each workbook. Can this be done with VBA?

Thanks,
Barb Reinhardt

Ardus Petus

Determining Row number where two conditions match
 
=SUMPRODUCT((A1:A999="VALA")*(B1:B999="VALB");ROW( ))

HTH
--
AP

"Barb Reinhardt" a écrit dans le
message de news: ...
I have about 50 read only workbooks and I want to find the row number where
the following condition matches:

Value in column A = "VAL A"
Value in column B = "VAL B"

This is unique in each workbook. Can this be done with VBA?

Thanks,
Barb Reinhardt





All times are GMT +1. The time now is 04:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com