ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   add every second column with formula (https://www.excelbanter.com/excel-discussion-misc-queries/237984-add-every-second-column-formula.html)

NDBC

add every second column with formula
 
I want to set a formula that finds the maximum value from every second column
across the whole worksheet. I know column no mod 2 can be used with vba but
how do i incorporate this into a formula.

Thanks

joel

add every second column with formula
 
Either of these two array formulas

{=MAX(--(MOD(COLUMN(B1:IV1),2)=0)*B1:IV1)}
or
{=MAX(--(MOD(COLUMN(B1:IV1),2)=1)*B1:IV1)}

"NDBC" wrote:

I want to set a formula that finds the maximum value from every second column
across the whole worksheet. I know column no mod 2 can be used with vba but
how do i incorporate this into a formula.

Thanks



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

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