Auto filter messing up my data

lochem

New Member
Joined
Jun 14, 2010
Messages
28
Help!
when i autofilter any column in my database it rearranges all rows -
but i have formulas in one column that are dependent on other cells adjacent to it in a row, and that relative formula doesnt move with the cell!

so when C3 at first = B3/A3 (let's say result in C3 is 0.32)
after i filter D by AtoZ (for example), all data in rows in B and A move around relative to the filter.. and so now i get a different value in C3 because the B3 and A3 have changed!

am i supposed to have made the cell references relative? locked??
if i have to change the cell references is there anyway to do this for an entire column or selected range?
 
C3 still has the formula =B3/A3 which is now resulting in a different value (after sorting) because A3 and B3 have different information in them now!

This is a bother sorting out. Normally, A3 and B3 should "sort" or "move" with C3 - the whole row should sort together. This suggests either this is not happening (by design or otherwise), or that the values in A3 and B3 are also dependent on something else that changing because of the sort.

I'm not sure I see how it all fits ... you might need to post a sample row, with all the formulas or values in that row shown (perhaps before and after). The vlookup might be part of it as you suspect, but its hard to see how that fits in with anything in the other columns, or column C.
 
Upvote 0

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
please have a look (this is one cell's formula when the database is fine, before the sort):
=VLOOKUP(H3,Appendix!$F$18:$G$22,2,0)*(F3-D3)
Are H3,F3,D3 the cells of Appendix sheet?
 
Upvote 0
No. H3, F3, D3 are on this sheet where i have the database. the only reference to another sheet is the range you see from Appendix.
 
Upvote 0
Ok, just a thought - in sorting range formulas remove all referencing to its own sheet if present.
See example in Sorting doesn't sort
 
Upvote 0
Wow. big props. I really dont know what to say - that's probably the most frustrating thing i've been dealing with and now it's solved! thank you thank you!
there has to be an explanation to this though - just by fixing the cells that had the same-sheet self-reference in the formula... how did that change things?
it worked, but WHY did it work??:biggrin:
 
Upvote 0
Lochem,
I don’t know why it works so, just has found this feature in the past.
Happy it has helped,
Vladimir
:beerchug:
 
Upvote 0
well, my observation is that cell referencing to an already active worksheet takes away the opportunity for the cell formula to move relative to the sort.
seems like the cell reference becomes more than just a reference, rather a defined pointer to a specific cell address.
what do you think?
 
Upvote 0
well, my observation is that cell referencing to an already active worksheet takes away the opportunity for the cell formula to move relative to the sort.
seems like the cell reference becomes more than just a reference, rather a defined pointer to a specific cell address.
what do you think?
Agree, seems that cell’s formula referenced to its parent worksheet like =Sheet1!A1 is recognized as external reference and doesn’t change at sorting. Instead, the reference like =A1 is modifiable at sorting.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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