My formula is not displaying the result.

jjk1

New Member
Joined
May 9, 2012
Messages
41
Office Version
  1. 2019
Platform
  1. Windows
My formula is not displaying the result. It seems like it is identifying the result, but not displaying it in the cell where this formula resides.

=IFERROR(INDEX($J1, MATCH(MIN(IF(ISNUMBER($D:$D), MATCH($D:$D, $D:$D, 0))), MATCH($D:$D, $D:$D, 0), 0)), "")

What its suppose to do:
Search column D.
This first time a value appears in column D, identify the number that appears in column J of the same row, and display it in column K of the same row where the formula is.
In column D, any instances where the value appears multiple times, it is only the first occurrence that should be displayed.

(this formula searches "numbers" in column D. Once I can get this to work, then i need one that searches through "text" in column D) and works the same way.

Thank you
 
You need to post an actual example of what you are trying to do. I'm not sure what your above formula is doing.
What is the result from your above formula and how is it used to get the result in column K?
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Here is the example related to my question on how to apply the formula you wrote to my formula in cell J14. I want to put the formula in K14.

Excel1.png
 
Upvote 0
@jjk1 can you please post your actual data rather than an image. Members do not want to have to type all that out themselves. ;)

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
As requested for above question....

Test1Mr.Excel.xlsx
ABCDEFGHIJ
11
12SMOOTTY
13Data Source 1Data Source 2TextReferenceIdentity
14LZA00000001EF1239876 83D 21Q000000000000257943-000000000000257943-000000000150696388+000000000000000000+000000000150954331+000000000002667584-000000000150954331+000000000153363972+000000000002409397+000000000000000244+000000000000257943- 20220930XLMA00000001EF12398761ABC999997 ABC999997US 83D21QCABC2022093020220930000000000257943000+000000000257943000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+000000000000000000+ABC99999710 000000000000000000+00000000000000000000000000000000000000000000SMOOTTY 01305210750001ABCDEFGHIJK LMNOPQRS NABC000000000002579430+0000000000+000000010000000000+000000000002579430+ABC XSMOOTTY EF123987626673.4
15LZB00000001EF1239876 83D 21Q000000000000257943-000000000000257943-000000000150696388+000000000000000000+00000000000000000000000000+000000000000000000+000000000000000000+000000000076640416+000000000000000000+ 000000000000000000+ 20220930X
16
Sheet4
Cell Formulas
RangeFormula
C14C14=IF(AND(MID(B14,3,1)="a",(TRIM(MID(B14,514,10))=$C$12)),(MID(B14,514,10)),"")
D14D14=IF(AND(MID(B14,3,1)="a",(TRIM(MID(B14,514,10))=$C$12)),(MID(B14,12,9)),"")
J14J14=IFERROR(IF(IF(MID(A15,3,1)="b",IF(AND(MID(A15,47,1)="-",(MID(A15,29,18)/100)<>0),"+",IF(AND(MID(A15,47,1)="+",(MID(A15,29,18)/100)<>0),"-","")),"")="+",IF(MID(A14,3,1)="a",MID(A14,181,18)/100,"")+IF(MID(A15,3,1)="b",MID(A15,29,18)/100,"")*1,IF(MID(A14,3,1)="a",MID(A14,181,18)/100,"")+IF(MID(A15,3,1)="b",MID(A15,29,18)/100,"")*-1),"")
 
Upvote 0
You need to post an actual example of what you are trying to do. I'm not sure what your above formula is doing.
What is the result from your above formula and how is it used to get the result in column K?
You need to post an actual example of what you are trying to do. I'm not sure what your above formula is doing.
What is the result from your above formula and how is it used to get the result in column K?
Hi AhoyNC,

Just wanted to let you know that earlier this am I posted the minisheet from XL2BB with the actual data for my latest question. Thank you.
 
Upvote 0
I'm assuming your data starts in row 14 then the formula below goes down to row 50000. If you have more than 50,000 rows of data change ranges as needed.
Assuming you are trying to match the numbers in column J with the reference in column D (which has your formula).
Then try this formula in column K.
=IF(D14=D13,"",VLOOKUP(D14,$D$14:$J$50000,7,0))
 
Upvote 0
I'm assuming your data starts in row 14 then the formula below goes down to row 50000. If you have more than 50,000 rows of data change ranges as needed.
Assuming you are trying to match the numbers in column J with the reference in column D (which has your formula).
Then try this formula in column K.
=IF(D14=D13,"",VLOOKUP(D14,$D$14:$J$50000,7,0))
Thank you.
A couple issues. Your new formula pulls data from the results in columns C thru J. There are reasons I can't do that, the data has to come from the original source, i.e. the data strings in column A.
Also the functionality gained in your earlier formula =IF(COUNTIF($A$14:$A14,A14)=1,INDEX($B$14:$B$41,MATCH($B14,$B$14:$B14,0)),"") was partially lost in the formula above, it did not work consistently with my data.

However, since my formula worked in extracting the data from the strings in the nuanced manner I wanted, I was hoping that you could you could show me how to apply your formula =IF(COUNTIF($A$14:$A14,A14)=1,INDEX($B$14:$B$41,MATCH($B14,$B$14:$B14,0)),"") to the one I made so I could gain the functionality of your formula and apply it to mine.

Thank you,
 
Last edited:
Upvote 0
See if this simplified example is something you can adjust to your data.

Book1
ABCDHIJK
12
13Data 1Data 2ReferenceIdentity
14kflgkfjfflgk1212
15kflgkfjfflgk13 
16kflgkfjfflgk14 
17fgfmhkfggfmh1515
18fgkvkflgkvk1616
19fgkvkflgkvk17 
20fgkvkflgkvk18 
21fgkvkflgkvk19 
Sheet3
Cell Formulas
RangeFormula
D14:D21D14=MID(A14,2,4)
K14:K21K14=IF(A14=A13,"",INDEX($J$14:$J$21,MATCH(MID(A14,2,4),MID($A$14:$A$21,2,4),0)))
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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