Function to ignore hidding or previous columns

DisplayName

New Member
Joined
May 24, 2017
Messages
10
Hello - I have data in range J3:v8. And another range from Y3:AV8. I want to subtract J3 from Y3, in columnd Z3, and K3 from AA3 in column AB3; essentially skipping the column before the range y3:av8. I've tried index columns, and offset(columns) function, and I just can't figure it out.

GLGLGLGLGLGLGLGLGLGLGLGLGLInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustmentInvoiceAdjustment
Jul-18Aug-18Sep-18Oct-18Nov-18Dec-18Jan-19Feb-19Mar-19Apr-19May-19Jun-19TotalVarianceJul-18Jul-18Aug-18Aug-18Sep-18Sep-18Oct-18Oct-18Nov-18Nov-18Dec-18Dec-18Jan-19Jan-19Feb-19Feb-19Mar-19Mar-19Apr-19Apr-19May-19May-19Jun-19Jun-19Total
1,529.53 1,599.05 1,390.48 1,599.05 2,123.89 1,469.91 1,826.89 1,588.60 1,668.03 1,747.46 - - 16,542.89 - - 1,530 - 1,599 - 1,390 - 1,599 - 2,124 - 1,470 - 1,827 - 1,589 - 1,668 - 1,747 - - - - 16,543
1,232.33 1,288.35 1,120.30 1,288.34 1,056.00 1,108.80 1,324.80 1,152.00 1,209.60 1,267.20 1,324.80 1,152.00 14,524.52 - - 1,232 - 1,288 - 1,120 - 1,288 - 1,056 - 1,109 - 1,325 - 1,152 - 1,210 - 1,267 - 1,325 - 1,152 14,524
1,380.81 1,443.57 1,255.28 752.37 2,433.34 753.16 1,443.58 1,255.28 1,318.04 1,380.81 1,443.57 1,255.28 16,115.09 - - 1,381 - 1,444 - 1,255 - 752 - 2,433 - 753 - 1,444 - 1,255 - 1,318 - 1,381 - 1,444 - 1,255 16,115
1,619.20 1,692.80 1,472.00 1,692.80 1,619.20 952.39 - - - 1,872.62 1,910.77 1,661.54 14,493.32 - - 1,619 - 1,693 - 1,472 - 1,693 - 1,619 - 952 - - - - - - - 1,873 - 1,911 - 1,662 14,494
1,974.72 2,064.48 1,795.20 2,064.48 1,974.72 1,884.96 2,208.00 1,920.00 2,016.00 2,112.00 2,208.00 1,920.00 24,142.56 - - 1,975 - 2,064 - 1,795 - 2,064 - 1,975 - 1,885 - 2,208 - 1,920 - 2,016 - 2,112 - 2,208 - 1,920 24,142
- - - - - - - - - - 5,043.72 3,996.93 9,040.65 - - - - - - - - - - - - - - - - - - - - - - 5,044 - 3,997 9,041

<colgroup><col span="12"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
See if this does what you want.
In Z3: =Y3-INDEX($J3:$U3,COUNTIF($Z$1:Z$1,"Invoice"))

Now copy that down column Z and then copy the column Z formulas to columns AB, AD, ...
 
Upvote 0
Thank you! It didn't quite work out, BUT I realized I could do simple index match function, using the month as the criteria, and pasting the formula in each column. :)
 
Upvote 0
Glad you got it sorted. Thanks for letting us know. :)
 
Upvote 0

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

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