Excel Table Sorting Not Working with Index + Row Formula

Sunnykinz

New Member
Joined
Apr 22, 2022
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
So I have an Excel document with 3 Sheets: AS FED, DRY MATTER, SORT BY...

  1. The 'AS FEED' sheet contains a table without formulas, just basic numbers.
  2. The 'DRY MATTER' sheet contains another table, similar with the previous one. All cells with data in them are linked to 'AS FED' sheet via this formula:
='AS FED'! [collumn and row name] *100/(100-'AS FED'! [corresponding collumn] $44)

e.g. Cell C4 in 'DRY MATTER' sheet has this formula: ='AS FED'!C4*100/(100-'AS FED'!C$44)

  1. The 'SORT BY...' sheet contains yet another table. It uses the data from 'DRY MATTER' sheet, as you can see in the photos attached below.
The problem: When I try to sort the ingredients in 'SORT BY...' sheet, only the first collumns move, the others are somehow frozen.

What should I do to unlock those cells? I guess it's a bug with the index + row formula...

Before sorting.png After sorting.png
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Excel Table Sorting Not Working with Index + Row Formula
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Your sort will always fail as the formula is referencing the row it's on.
If the values in col B are also the headers on the the Dry Matter sheet try it like
Excel Formula:
=INDEX('DRY MATTER'!$B$4:$ZZ$4,MATCH([@[Name of ingredient]],'DRY MATTER'!$B$1:$ZZ$1,0))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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