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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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