tryed excell formula still not retrieving data

in regards to this question
obviously i have more data then i included in the example, as sheet1 is 90k plus enterys.
and i have a couple other large sheets referenced that are not directly part of the problem
so the information i am trying to retrieve exists on column 3 (C) of sheet 4, i have modified the formulae as follows

Open in new window

and entered with ctrl + Shift + enter and i am getting no data.
should it matter that sheets 1-4 are from sql data connections? or is there something obvious im doing wrong
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ShumsDistinguished Expert - 2017Commented:

Try attached with Named Range.
Ejgil HedegaardCommented:
You should not reference entire columns with Array formulas (entered with Ctrl+Shift+Enter), because the formulas will calculate on the entire 1 million rows on the sheet, also when the data range is shorter.
If it is a table on Sheet4, refreshed from a sql connection, it is not needed.
Point to the data range (all rows below the header), and Excel inserts the field data name.
It will automatically adjust when new data is received.
If it is a sql import, not set up as a table, referencing from row 2 to the last row, will also update formulas to the new range when new data is imported.

And it does not need to be an array formula.
Something like this.
=IFERROR(INDEX(Data name column C,MATCH(1,INDEX((Data name column A=B8)*(Data name column B=C8),,),0),1),"")

With the data in the sample from the reference question, with 8 rows it will be

Why it does not work is difficult to say without any data.
The formula looks ok.

Could you upload a sample.
csePixelatedAuthor Commented:
Ejgil Hedegaard, for clarification  the above equation only searches the top 8 rows of sheet4?
i have not tried since i cut the data down, all fields ar as they are meant to be. however all pertinent information has been changed.

Shums i tried the code in the file you included, it still did not work, hopefully the included file helps, see sheet5 I7. Im sure it is butchered from what you meant.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Ejgil HedegaardCommented:
That is correct, the formula is made for 8 rows.
I don't see any sample data from you, so I used the workbook from Bill Prew in the previous question.
As mentioned you should use the real data range, then it will work for that, and automatically adjust when new data are imported.
It could also be the entire columns, but calculation will be slower when calculating on 900k not used rows, if your real data is 90k rows.
csePixelatedAuthor Commented:
im sorry, i thought i uploaded it, i however only selected it.
Ejgil HedegaardCommented:
In attached file I made the connection on Sheet5 to the table on Sheet1, because both SignalID and AccountID exist on both sheets.
There are no matches to Sheet4.
Not sure that is what you need, but it shows the principle, and you can see it works.

Formulas in Column J on Sheet5.
The formula in J2 is

Open in new window

On Sheet5 (2) is the same, but changed to at table.
Then the formula in J2 is
=IFERROR(INDEX(Table_cdiserv1_History1117_SignalHistory[OperCode],MATCH(1,INDEX((Table_cdiserv1_History1117_SignalHistory[SignalID]=Tabel2[[#This Row],[SignalID]])*(Table_cdiserv1_History1117_SignalHistory[AccountID]=Tabel2[[#This Row],[AccountID]]),,),0),1),"")

Open in new window

csePixelatedAuthor Commented:
sorry about the delayed reply, while the formula works it only gives me the opercode from sheet 1,
the best example in the data set is line 7 sheet1 [signalid] 611117 [accountid] 39880 [alarmzones] 99 should reference the [accountid] & [number] on sheet 4, to match up to [description] on sheet 4.

I realise i messed up on my sample data as sheet 4 has no data relative to the other sheets, so as an experiment i changed all lines with account number 39980 to 39880  this means that [accountid] 39880 [number] 99 = grumpy. so im trying to get the description.
Ejgil HedegaardCommented:
That does not fit either, because Number on Sheet4 is "        99" and AlarmZones on Sheet5 (2) is "99" (value from Sheet1).
Both are text, but on Sheet4 there are leading spaces.

To eliminate the spaces, both values are multiplied with 1.
That converts the texts to numbers, so the compare can be made like this
(Table_cdiserv1_SUBSCRIBER_Zone_Lists[Number]*1=Tabel2[[#This Row],[AlarmZones]]*1)

Then the formula in the table on Sheet5 (2) is
=IFERROR(INDEX(Table_cdiserv1_SUBSCRIBER_Zone_Lists[Description],MATCH(1,INDEX((Table_cdiserv1_SUBSCRIBER_Zone_Lists[Number]*1=Tabel2[[#This Row],[AlarmZones]]*1)*(Table_cdiserv1_SUBSCRIBER_Zone_Lists[AccountID]=Tabel2[[#This Row],[AccountID]]),,),0),1),"")

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.