Formula Changing when sorted

MoreGone

New Member
Joined
Aug 15, 2016
Messages
14
I am using an INDEX MATCH with INDIRECT to pull in Install Dates from another sheet based on Account Numbers on both sheets

=INDEX(INDIRECT("'Master list'!F$2:F$492"),MATCH('Master Tracker'!$A50,INDIRECT("'Master list'!K$2:K$492"),0),1)

We get the updated dates weekly on a sheet called Master list. So my approach was to add the Master list sheet my workbook with Master Tracker using INDIRECT so I could remove the Master list and replace it and the formula still work. And it is working fine. Until I sort.


I am putting the above formula in B50, right next to A50, the account number. Once I sort, the reference to the Account Number changes independently of the Account Number. So the account number in A50 when sorted becomes A60, but the reference in B60 is somehow updated to reference against A67. Any idea where I am going wrong?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try removing the reference to the sheet containing the formula.
 
Upvote 0
Try removing the reference to the sheet containing the formula.

Sorry, I don't believe I am following. I am not referring to a sheet that contains a formula.

Master list is sent to me at the end of the week with all the scheduled Install Dates next the account #. I am adding the install dates to my Tracker that contains a lot of other fields. Master list does not have any formulas.

On my Master Tracker, I am looking at Master list to find the additional accounts that were scheduled install dates. It really is just a INDEX MATCH to another sheet. But I have added INDIRECT into the formula so I can simply delete the Master list sheet weekly when I get the new version. I believe my troubles are stemming from the use of INDIRECT but really uncertain how as the reference to the Account Number in the A column is not inside the INDIRECT function
 
Upvote 0
Is the formula on the sheet called "Master Tracker"?
 
Upvote 0
Is the formula on the sheet called "Master Tracker"?

Thank you. I have removed the Reference to Master Tracker and it is working as intended. Do you by chance know why this would cause this? When writing the formula and flipping between the tabs Excel included that for me. I saw it but figured it was just 'extra' or 'the long name' and wouldn't have an impact. Boy was I wrong.
 
Upvote 0
Glad it's sorted & thanks for the feedback

I've no idea why having the sheet name in causes problems when sorting, I just know it does.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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