Dynamic cell and sorting

Polanskiman

Board Regular
Joined
Nov 29, 2011
Messages
119
Office Version
  1. 365
  2. 2016
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
  2. MacOS
  3. Mobile
So here is the deal. I need that cell in E4 to be dynamic because the "Description" column on the Excel table is supposed to be sortable. By dynamic I mean that no matter the order of the Excel table, cell E4 should always report the correct tag associated to the description. How can I achieve that?

Any help would be appreciated.

Thank you.

Book1.xlsx
BCDEFGHI
1
2In Sheet 1In Sheet 2In Sheet 3
3
4Product 1Product 1 newDescriptionTag
5Product 2Product 1new
6Product 3Product 2old **
7Product 4Product 3used
8Product 5Product 4
9Product 6Product 5
10Product 6new
11Product 7
12Product 8
13
Sheet2
Cell Formulas
RangeFormula
E4E4=Sheet2!C4&" "&Sheet2!H5
 
Got you. Excellent! Thank you very much. This closes my question. I will do my best to be more precise the next time I post a question.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
G6:G16G6=MATCH([@Fertilizer],Sheet1!C$5:C$12,0)+COUNTIF(INDEX([Fertilizer],1):[@Fertilizer],[@Fertilizer])/10^6
Hi, this formula although working for Excel 365 is not for earlier versions of Excel. I get the _xlfn.SINGLE in place of the @ in Excel 2010. I suppose this is due to the fact that dynamic array functions are not supported by earlier versions. So I tried updating the formula to something like this:

Excel Formula:
{=MATCH($G7:$G58,$E$7:$E$58,0)+COUNTIF(INDEX($G$7:$G$58,1):$G7:$G58,$G7:$G58)/10^6}

Only problem is, it is not giving a unique IDx to fertilizers that have the same name. For instance:
Screen Shot 2020-12-01 at 22.09.24.jpg

How should the formula be updated so that it works with Excel 2010 up?

Thank you.
 
Upvote 0
I don't have an earlier version to test on so diagnosis may be difficult.

Do you get _xlfn.SINGLE everywhere in the formula there is an @ or only one/some of the places?
So I tried updating the formula to something like this:
I can't comment on that alternative unless you tell us what cell the 'Fertilizer' heading is in in the Sheet3 table.
 
Upvote 0
Do you get _xlfn.SINGLE everywhere in the formula there is an @ or only one/some of the places?
Yes everywhere, such as:
Excel Formula:
=MATCH(_xlfn.SINGLE([products+DIY]),[raw_products_import],0)+COUNTIF(INDEX([products+DIY],1):_xlfn.SINGLE([products+DIY]),_xlfn.SINGLE([products+DIY]))/10^6

I can't comment on that alternative unless you tell us what cell the 'Fertilizer' heading is in in the Sheet3 table.
"Fertilizer" heading is on cell G6. In my case the heading is called "products+DIY" as you can see in the above formula.
 
Upvote 0
So, what happens if you put this in row 7 of the Idx column of the table in Sheet3?

Excel Formula:
=MATCH(G7,Sheet1!C$5:C$12,0)+COUNTIF(G$7:G7,G7)/10^6
I think you know the answer to that. ;) It works perfectly. Thank you so much. I sent you the actual file in PM including your last mod (RCFerts Sheet, column F) in case you are curious to know what I have been working on for that past 6 months. Many of the formulas in that file I owe them to you.

Anyway thank you again.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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