Excel: SEARCH function doesn't work with another worksheet - excel

I am trying to compare a column of data (each row separately) to a column in another worksheet and give a simple TRUE/FALSE, I tried declaring the list directly in the SEARCH function but it didn't work so I resorted to TEXTJOIN to make it easier for the SEARCH function but it still does not work.
I tested the function below in Google Sheets and it worked, in Excel 2016 it just gives an error #NAME?
Any idea why or is there another way to do this? To clarify, SEARCH function is the one not working, not the ISNUMBER
=ISNUMBER(SEARCH(A2,TEXTJOIN(" ",TRUE,AnotherSheet!L3:L)))

Related

Vlookup with nested if's and variable range

I've been trying to get a Vlookup to work more efficiently without VBA with I think is a dynamic (name) range, and without nested IF functions.
I'm new here and have tried to find the solution with other posts, but couldn't work it out.
I have one workbook with item codes and a vlookup, which references to another closed workbook (so function Indirect doesn't work) with cost values. In cell D3 there is a data validation cell where the user can select which sheet in the other workbook should be referenced (e.g. File001 or File002), changing the Vlookup and returning the correct cost.
Unfortunately I can't get it to work more efficiently.
I've tried Indirect, but that only works when the other workbook is open and I need it to be closed.
I'd like something simple such as:
=VLOOKUP(B3,INDIRECT("'[Book3.xlsx]" & D3 & "'!A3:B6"),2,FALSE)
which doesn't work
...and not what I use now, where it checks every time if it is File001, or 002, or 003,.. etc. and then vlookup:
=IFNA(IFS($K$2="","?",$K$2="File001",PROPER(VLOOKUP(UPPER($E13),NameRange001,4,FALSE)),$K$2="File0002",PROPER(VLOOKUP(UPPER($E13),NameRange002,4,FALSE)),$K$2="File003",PROPER(VLOOKUP(UPPER($E13),NameRange003,4,FALSE)),$K$2="File004",PROPER(VLOOKUP(UPPER($E13),NameRange004,4,FALSE)),$K$2="File005",PROPER(VLOOKUP(UPPER($E13),NameRange005,4,FALSE)),$K$2="File006",PROPER(VLOOKUP(UPPER($E13),NameRange006,4,FALSE))),"")
Code example:
I need to add more sheets from the other wb, so e.g. up to File0030, making the nested IFs extremely long. Does anyone please have an idea how to make this work more efficiently? I've been trying to improve this for maaany days.
Thanks in advance!!

How to convert text into formulas in Excel when referencing another worksheet?

I'm working on a set of worksheets where I need to make a summation with more than one constraint parameter, so I use the function sumifs ()
It happens that the worksheet needs to consider the rows that are added and so this sum with constraints is constructed from the function concatenate whose parameters come from another worksheet.
So, trying to use the suggestion did not work ... or with
Application.ThisCell.Parent.Evaluate (Ref)
So I need help since I don't know how to solve the issue, how to turn the text bellow into a formula:
=CONCATENATE("=SUMIFS(lançamentos!N$2:N";TEXT(L1+2;0);";lançamentos!AA$2:AA";TEXT(L1+2;0);";lançamentos!AA";TEXT(L1+4;0);";lançamentos!D2:D";TEXT(L1+2;0);";ADDRESS(ROW(A3);COLUMN(A3);4))")

Index-Match Look-up search criteria error

I am attempting to use a Index-Match function to search my pivot table for the most current week. There is no issue when I type in the value as a string myself but I cannot reference a cell with that exact same value as the criteria for instance.
=Index(E:E, Match("3/7/2018 Total", A:A,0) this works as intended but I am attempting to automate this process.
Referencing a cell with =CONCATENATE(TEXT('Performance Summary'!B1,"m/dd/yyyy"), " Total") to create this same style in a cell does not work.
I have also attempted performing this function within the index-match function itself to no impact. Using a vlookup with this same function previously worked but ceased to function after a one time use (I suspect due to the fact that the table size changes daily, which messes it up even though i referenced the entire row range for the columns).
I am interested in any solution to solve this problem. Thanks.
You have one too many ds in the format. Also you can skip using Concatenate():
=INDEX(E:E,MATCH(TEXT('Performance Summary'!B1,"m/d/yyyy")&" Total",A:A,0))

Function in excel to search an array of strings for two different sub strings

I am having trouble at the moment finding a function to search through an array of cells in excel in order to count the amount of times a cell contains two words.
e.g. The functions I have tried so far:
=COUNTIF([array],AND("text1","text2"))
and
=COUNT(IF(ISNUMBER(SEARCH("text1",[array])*SEARCH("text2",[array])),1,0))
or
=SUM(IF(ISNUMBER(SEARCH("text1", [array])*SEARCH("text2",[array])),1,0))
So I was hoping for feedback if there is a different/easier way to do this or if there are errors in constructing my excel functions.
Try COUNTIFS with wildcards, I.e
=COUNTIFS(A:A,"*text1*",A:A,"*text2*")
As a side note:
For those of us who still hang around with ancient Excel versions: the following will work even with Excel 2003:
=MMULT(TRANSPOSE(IF(ISNUMBER(FIND("text2";A1:A200));1;0));IF(ISNUMBER(FIND("text1";A1:A200));1;0))
You have to confirm the formula input with <cntrl><shift><return> for it to become a matrix formula, otherwise it will not work.

Excel Vlookup error

I have a spreadsheet that is stored in a shared location on a website that I need to do a Vlookup on in order to gather certain data. In order to test I have a Workbook stored in my documents. I have some VBA in this workbook but this does not affect the data in question.
The Formula that I am attempting is
=VLOOKUP("activated",$A4,4,TRUE)
What I need to do is to pull data from several columns in this sheet but I have not used Vlookup in a long time so I am trying to start small. I have formatted all of the cells to general but this has not helped.
I have also tried
=VLOOKUP("activated",$A2:$A71,4,TRUE)
However I constantly get the #REF error
Putting the following will return Activated so I know that in principal the formula is correct
=VLOOKUP("activated",$A2:$A71,1,TRUE)
I have looked at the answer submitted in Excel VLOOKUP #REF Error but this has not resulted in the correction of my errors
Any help would be greatly appreciated
The third argument is the column that you want to return... As there is only 1 column in the range $A2:$A71 you can't put 4 as the argument...
You probably need =VLOOKUP("activated",$A2:$D71,4,TRUE)
Also you should probably use FALSE for your last argument, as this can return the next closest match, if you use TRUE.
Range_lookup A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
http://office.microsoft.com/en-gb/excel-help/vlookup-HP005209335.aspx

Resources