Problem with Table references

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
591
Office Version
  1. 365
Platform
  1. Windows
Hello

I used the formula below and it works OK but it takes too many resources to calculate. I assume using Tables will prevent that as it will not have to search across the whole sheet since it will only search across the Table.
=TEXTJOIN(CHAR(10),,FILTER(Sheet1!$I:$I,(ISNUMBER(SEARCH([@[ID]],Sheet1!F:F)))*(Sheet1!B:B<=[@[Date 2]])*(OR(ISBLANK(Sheet1!D:D),Sheet1!D:D>=[@[Date 2]]))))

I tried to use Table references to make it work but it doesn't seem to work:
=TEXTJOIN(CHAR(10),,FILTER(Table2[@Text],(ISNUMBER(SEARCH([@[ID]],Table2[@LB])))*(Table2[@[Date 1]]<=[@[Date 2]])*(OR(ISBLANK(Table2[@[Date 3]]),Table2[@[Date 3]]>=[@[Date 2]]))))

Any idea why it does not work?

I think the problem is at the Table2[@Text], because it seems to refer to a specific row under this column, instead of the whole column.

However, I am not sure how to make it consider the whole column instead.

Thanks!
 

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.
Try it like
Excel Formula:
=TEXTJOIN(CHAR(10),,FILTER(Table2[Text],(ISNUMBER(SEARCH([@[ID]],Table2[LB])))*(Table2[[Date 1]]<=[@[Date 2]])*(OR(ISBLANK(Table2[[Date 3]]),Table2[[Date 3]]>=[@[Date 2]]))))
 
Upvote 0
Thanks it works!

Can I ask a couple of points please:

1) What is the difference between Table2[LB] and Table2[[Date 1]]? Why double brackets?
2) Why when I copy the result, I get "text text" and not simply text text without the quotes?

Thanks!
 
Upvote 0
Why double brackets?
I just removed the @ signs which shouldn't be there & forgot to get rid of the extra brackets.
What do you mean by "copy the results"?
 
Upvote 0
I just removed the @ signs which shouldn't be there & forgot to get rid of the extra brackets.
What do you mean by "copy the results"?

Thanks, but what is the difference between Table2[Date 1] and [@[Date 1]] ?

Copy the results = select cell and click CTRL+C then paste in Notepad. It includes the texts in quotes "".
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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