I'm attempting to return a string of values that match multiple sets of criteria. All of the criteria except for the one that looks to see if the value matches a key seem to be working. I believe it has something to do with combining a array formula with a OR statement.
I was able to create one formula that worked using the TRANSPOSE function however, once I dragged it down my excel prompted me with the below error message. (Assuming it is too much data to compute)
Here is the formula that worked initially:
=TEXTJOIN(", ",TRUE,IF(('Sample Check Data'!$A:$A=Solution!B3)*('Sample Check Data'!$T:$T=Solution!D3)*('Sample Check Data'!$J:$J>Solution!G3)*('Sample Check Data'!$M:$M=TRANSPOSE(Criteria!$A$2:$A$8)),'Sample Check Data'!$H:$H,""))
Image
As an alternative, I built this formula which continues to fail to return a #VALUE Error (The bold highlight is what's causing it to fail. I, unfortunately, can't figure out the issue. Does anyone know how to resolve?:
=TEXTJOIN(", ",TRUE,IF(**'Sample Check Data'!$M:$M=OR(Criteria!$A$2:$A$8)***('Sample Check Data'!$A:$A=Solution!B3)*('Sample Check Data'!$T:$T=Solution!D3)*('Sample Check Data'!$J:$J>Solution!G3),'Sample Check Data'!$H:$H,"NoDataFound"))
I found the transpose solution on this thread but it did not mention any memory issue resulting from its use. TEXTJOIN based on multiple columns and multiple IF conditions
Any help or alternative solution would be greatly appreciated.
Update:
After some more trial and error I found a solution, however I'm still running into the Excel Ran Out of Resources Error.
=TEXTJOIN(", ",TRUE,IF(('Sample Check Data'!$A:$A=Solution!B3)*('Sample Check Data'!$T:$T=Solution!D3)*('Sample Check Data'!$J:$J>Solution!G3)* (('Sample Check Data'!$M:$M=Criteria!$A$2) +('Sample Check Data'!$M:$M=Criteria!$A$3)+('Sample Check Data'!$M:$M=Criteria!$A$4) +('Sample Check Data'!$M:$M=Criteria!$A$5)+('Sample Check Data'!$M:$M=Criteria!$A$6)+('Sample Check Data'!$M:$M=Criteria!$A$7)+('Sample Check Data'!$M:$M=Criteria!$A$8)),'Sample Check Data'!$H:$H,""))
I attempted to modify the column references from $A:$A to $A$1:$A$10000 that way less computing power is required. After making this change I now receive a N/A error. Are there any suggestions?
Related
I'm admittedly new to using VLOOKUP in Excel, but I've run through a few tutorials on this and can't figure out what I'm doing wrong here. I'm attaching a sample of the table I'm working with, where I'm attempting to match a value (ZPOP) that is dependent on another value (ZIPCODE). The formula I'm using is
=VLOOKUP(A2,M:N,2,TRUE)
When I do the same as you, it looks like the formula is exact.
But, there's one thing in your Excel sheet: there is a warning at the beginning of your A-column. In order to reproduce this, I've replaced the value 59001 by '59001 (mind the single quote), and there the problem arises too.
Please check the warning of your A column and do some reformatting of that value, if possible.
I have recently upgraded to 365 from 2016 and found that when trying to use the same VLOOKUP formula as I have been doing previously, only some values are returned (looks like it is the pure number based ID's are failing to be returned).
I have tried recreating this sheet and recreating the formula (normally a copy and paste from a previous sheet works fine).
Double checked to make sure that the ID's are definitely in the data.
=(VLOOKUP(D3,Sheet2!$B$1:E1999,4,FALSE)*E2)
This returns N/A, however I have double checked that cell D3's value does exist in Sheet2's array.
It should be returning 53.11 but instead shows N/A.
I have checked to make sure that there are no hidden spaces or characters or duplicate entries for this ID.
As you can see from this picture, ID's with text in them are returning a result as expected. It's just the numerical ones that are not.
If you have any suggestions, please let me know.
Thanks!
Managed to get this to working using the IFERROR formula.
Long winded, but does the job.
=IFERROR((VLOOKUP(VALUE(D3),Sheet2!$B$1:E1999,4,FALSE)*E2),VLOOKUP(D3,Sheet2!$B$1:E1999,4,FALSE)*E2)
I would first like to apologize if this question has already been posted and answered numerous times but I was unable to find the right wording for my question to find a thread that matched.
I have a Sumproduct formula with multiple criteria that helps identify the number of issues I have on the main spread sheet. I got the number of issues, however now I would like to identify the cells meeting this criteria. Is there any way to do this?
To further explain my intention, the main tab on my spread sheet is a report with many different columns that would need to be filtered several different ways each time in order to catch the exceptions we are looking for. I am trying to avoid this manual process by creating a new tab to show these exceptions without having to look for them and leave cause for any user/human error where something could potentially be missed. In a new tab, I used several formulas (like the one below) to determine the number of different exceptions we need to catch, however I am wondering if there is a way to also identify these specific cells that the exceptions fall in so that the user can immediately locate and correct it.
For example: 2 issues identified; B10 and B26. (Or more specifically, if possible, the contents of that given cell?)
Sumproduct:
=SUMPRODUCT(--(May!C2:C452="FHA"),--(May!Z2:Z452<>""),--(May!AB2:AB452<>""),--(May!AC2:AC452=""))
Note: I have also tried to achieve this by using conditional formatting using the formula above, however the issue that I run into with that approach is that the entire row gets highlighted instead of the specific cells matching the criteria from the formula. I am open to a solution with this as well if it is an easier approach.
I hope I am getting across what I am trying to do! Thank you in advance to whomever can help!
Consider adding an additional column to the May worksheet. The new column would contain formulas like:
=(C2="FHA")*(Z2<>"")*(AB2<>"")*(AC2="")
If you AutoFilter on this new column, you will see all the contributors to the SUMPRODUCT() formula.
Your 2 issues identified; B10 and B26 appears to refer to cells that have no bearing on what you seek to achieve so I may have misunderstood but suggest selecting A:AC and applying a CF formula rule of:
=AND($C1="FHA",$Z1<>"",$AB1<>"",$AC1="",OR(COLUMN()=3,COLUMN()=26,COLUMN()=28,COLUMN()=29))
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
While i have seen this topic answered before i cant seem to understand the solution :(
Here is my worksheet:
https://docs.google.com/spreadsheet/pub?key=0AsCQyX3EZ40SdC1FNFBjVDh6d01iY2g0WnVXOU5GeFE&output=xls
As you can see i need the second INDEX in the first sheet to return the second value looked, but instead (as expected) it shows the first one again.
I am not the best with excel, explain slowly and i will understand fast!
Thanks in advance!
Try this "array formula" in Calculator sheet cell A3
=IFERROR(INDEX(IngredientDB!B$1:B$100,SMALL(IF(IngredientDB!$A$1:$A$100=$B$1,ROW(IngredientDB!$A$1:$A$100)),ROWS(A$3:A3))),"")
confirmed with CTRL+SHIFT+ENTER and copied across and down. When you run out of entries you get blanks - assumes up to 100 rows of data, increase as required
If you wanted to go the pivot table route you can start with this as a base and then customize it to your exact liking.:
Start with your info:
Then add a pivot of your data:
Then set the properties as so and then you can select the search terms, you can also change the settings to allow someone to type it in also:
The result will be as so: