Use Excel BYCOL to Test Every Column Against a Range
Question details
Return TRUE or FALSE for each column based on whether every value is greater than the corresponding value in a reference range.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Compare each column in B1:O6 with the corresponding rows in A1:A6 and return one result per column.
- Observed behavior
- The desired result is a horizontal array of TRUE and FALSE values, one for each tested column.
Check that your Excel version supports BYCOL, LAMBDA, and dynamic arrays. Ensure the comparison range and tested columns have the same number of rows, and leave enough empty cells for the results to spill horizontally.
Compare each column with BYCOL and LAMBDA
Use this formula to return TRUE only when every value in a column is greater than its corresponding reference value.
BYCOL passes each column to LAMBDA. The comparison col<=A1:A6 identifies values that fail the greater-than test; a column returns TRUE when the count of those values is zero.
Click an empty cell outside A1:O6, with at least 14 empty cells available across the output row.
Enter =LET(isColGreater,BYCOL(B1:O6,LAMBDA(col,SUM(--(col<=A1:A6))=0)),isColGreater) and press Enter.
Check the spilled results from left to right: the first result corresponds to column B, the next to column C, and so on through column O. TRUE means every value in that column is greater than its matching value in A1:A6.
Edit B1:O6 and A1:A6 in the formula to match your data. If your source is already a spilled array, you can use its anchor cell followed by #, such as B1#, in place of B1:O6.

Work with spreadsheet data in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Excel files. It can help you migrate everyday spreadsheet work, although it does not fix Excel-specific BYCOL or LAMBDA issues; check formula support before relying on those functions in WPS.

Frequently Asked Questions
What does TRUE mean in the output?
TRUE means every value in that column is greater than the value in the same row of A1:A6. A value that is equal to or less than its reference makes the result FALSE.
Why does the formula show a spill error?
The output needs one empty cell for each tested column. Clear any cells blocking the horizontal spill range, and enter the formula outside an Excel Table.
Can I compare a spilled range instead of B1:O6?
Yes. Replace B1:O6 with the spilled range's anchor followed by #, such as B1#. Make sure the spill has the same number of rows as the reference range.
Why does Excel not recognize BYCOL or LAMBDA?
Your Excel version may not support those functions. Check your Excel version and update to a release that supports BYCOL, LAMBDA, and dynamic arrays.




