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?
Ejgil HedegaardConnect With a Mentor Commented:
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

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.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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.
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.