Ignore the Values in hidden columns.

mabubakerali

New Member
Joined
Feb 23, 2016
Messages
35
Just like we use Aggregate function to ignore the values in hidden rows and ignore error and subtotals, is there any way we can do the same but with columns since aggregate function isnt working for columns, e.g i have 2 in column A , 3 in column B and 4 in column C and their sum is in column D, but if i hide column B i want excel to ignore the values in Column B and show the sum which is 6.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Like this ?

Excel Formula:
=SUM(IF(CELL("width",OFFSET(A1:D1,,SEQUENCE(,COLUMNS(A1:D1),0))),A1:D1))

**Before Hide column B
1714026722660.png




**After Hide Column B

1714026779852.png
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top