Excel Problem. Please Help!!

jharvey_22

New Member
Joined
Jun 10, 2011
Messages
8
In the spreadsheet I'm trying to make I did the following:
-Made three tabs – one for the previous quarter(initial), one for the current quarter(current), and the final one for comparison
-Used the indirect function to pull values in the first two tabs to the workbook from the external files stored in my work drives.
-In the third sheet or the comparison sheet, I set up an IF function which will calculate a percentage change between the first two sheets if the numbers are different (otherwise it will be left blank)
formula: IF(Initial!C20<>Current!C20,(((Current!C20)-(Initial!C20))/Initial!C20),0)
-From there, I set up conditional formatting which allows me to see unusual changes between the quarters.

My problem:
Sometimes different external files I pull from have a different number of columns thus throwing off my comparison file formula. Is there a way that a formula can match the columns headers(and below) that are alike in the first two tabs and return it to the third tab and then still use the if statement above to calculate the percentage change? Would a Hlookup do the trick? I'm sort of new with excel. Any help is much appreciated. I need a formula, not a macro if possible. Thanks! <!-- google_ad_section_end --><!-- / message -->
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Yes, HLOOKUP with check header names and pull values from below. VLOOKUP does the same from the sides (left to right).
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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