Function Problems

Use Excel BYCOL to Test Every Column Against a Range

Olivia MillerOlivia Miller Nov 18, 2026 869 views

Question details

Return TRUE or FALSE for each column based on whether every value is greater than the corresponding value in a reference range.

Use Excel BYCOL to Test Every Column Against a 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.
Before you start

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.

Solution 1Recommended

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.

1
Select an empty cell

Click an empty cell outside A1:O6, with at least 14 empty cells available across the output row.

2
Enter the formula

Enter =LET(isColGreater,BYCOL(B1:O6,LAMBDA(col,SUM(--(col<=A1:A6))=0)),isColGreater) and press Enter.

3
Read the results

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.

4
Adjust the ranges

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.

Compare each column with BYCOL and LAMBDA
Keep expanding data aligned: For data that grows, consider Excel Tables and structured references. Keep the tested rows aligned with the reference rows, and place the spilled formula outside the table.
Free Microsoft Office alternative

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.

Review and organize data for column-by-column comparisonsOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface for a smoother transitionWork with a free, lightweight office suite
microsoft office alternative - wps office

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.