ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Compare Two Rows Directly (https://www.excelbanter.com/excel-programming/404684-compare-two-rows-directly.html)

Lokesh[_2_]

Compare Two Rows Directly
 
Hi,
We need to compare the values in the worksheet row-by-row. But currently
we use cell-by-cell comparison logic. Is there any way to compare two rows
directly without going cell by cell.

Note: We're using Office 2003.

Thanks In Advance,
Lokesh R

Tom Ogilvy

Compare Two Rows Directly
 
Not really.

You could always write a function that does the cell by cell for two rows
and then it would look like you were doing it row by row when you passed two
row references to the function.

--
Regards,
Tom Ogilvy


"Lokesh" wrote:

Hi,
We need to compare the values in the worksheet row-by-row. But currently
we use cell-by-cell comparison logic. Is there any way to compare two rows
directly without going cell by cell.

Note: We're using Office 2003.

Thanks In Advance,
Lokesh R


Alan Beban[_2_]

Compare Two Rows Directly
 
If the functions in the freely downloadable file at
http://home.pacbell.net/beban, then you might use

RowsEqual(Row1, Row2)

Then you can avoid writing such a function yourself; it returns True if
the rows are the same, False if they aren't.

Alan Beban

Tom Ogilvy wrote:
Not really.

You could always write a function that does the cell by cell for two rows
and then it would look like you were doing it row by row when you passed two
row references to the function.



All times are GMT +1. The time now is 02:07 PM.

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