My understanding is that INDEX MATCH is a more efficient process than using VLOOKUP in Excel 2010. Is this correct? If so, I need some help converting my VLOOKUP formula to an INDEX MATCH formula:
=VLOOKUP(A5&B5,CHOOSE({1,2},EDM.dbo.current_chemical_prices!A:A&EDM.dbo.current_chemical_prices!B:B,EDM.dbo.current_chemical_prices!E:E),2,0) * F5
Thank you!
I was able to figure it out. For some reason, it was not running as an array. Very odd...but solved at least!
=INDEX(EDM.dbo.current_chemical_prices!E:E,MATCH(A5&B5,EDM.dbo.current_chemical_prices!A:A&EDM.dbo.current_chemical_prices!B:B,0))
Related
I am having trouble working out an error I am having with the formula below, I am a bit of a novice and its been more trial and error than anything so far but, I was hoping someone with a far greater knowledge could point out where I am going wrong.
The formula works fine without the indirect element I.e.
=SUMPRODUCT((PARROT!$o$12:$o$250<>"COMPLETE")*(PARROT!$n$12:$n$250<TODAY()))
but I want to replace the sheet name with an INDIRECT address as the name of the sheet could change
so the formula I came up with is but, it has an error:
=SUMPRODUCT(INDIRECT("'"&$A3&"'!$o$12:$o$250"),"<>"&"Complete")*(INDIRECT("'"&$A3&"'!$N$12:$N$250")<TODAY())
Help would be very much appreciated.
From your formula it seems you are just counting rows where O12:O250 is not equal Complete and N12:N250 is earlier than today. So, you can use COUNTIFS() formula with INDIRECT() easily. Try below.
=COUNTIFS(INDIRECT($A$3&"!$O$12:$O$250"),"<>Complete",INDIRECT($A$3&"!$N$12:$N$250"),"<"&TODAY())
If you need to sum values from a column then SUMIFS() will be your friend.
I need help in my formula, I'm getting #VALUE!.
I have 2 sheets, I need to get the data using 2 values, So I've searched and the solution is to use the INDEX and MATCH Function. I've tried that in my formula but I think I'm doing it wrong.
I have 3 columns in my Main Sheet,
In the column Total Amount I need to insert the formula.
And this is my 2nd sheet. 3 columns also.
And this is the formula that I've used,
=INDEX(Q9:Q13,MATCH(O19&P19,O9:O13&P9:P13,0))
I've tried to check using evaluate formula and I'm getting #Value! I don't know why.
Any Ideas?
Thanks!
I think SUMIF() would be best fit for you in this case. Try below formula.
=SUMIFS(Sheet2!$Q$8:$Q$13,Sheet2!$O$8:$O$13,A1,Sheet2!$P$8:$P$13,B2)
You can also use SUMPRODUCT() like below.
=SUMPRODUCT((Sheet2!$Q$8:$Q$12)*(Sheet2!$O$8:$O$12=A2)*(Sheet2!$P$8:$P$12=B2))
I am trying to use an OR formula as follows:
=OR(IFERROR(VLOOKUP(W1197,Nursery!A:F,6,0),"outofstock"), IFERROR(VLOOKUP(W1197,Annuals!A:G,7,0),"outofstock"))
It keeps returning a #VALUE error.
I'm pretty sure I am referencing the correct fields, and I have made this work correctly using only 1 vlookup forumula. What am I doing wrong with the OR statement?
Thanks for any help.
use:
=IFERROR(IFERROR(VLOOKUP(W1197,Nursery!A:F,6,0),VLOOKUP(W1197,Annuals!A:G,7,0)),"outofstock")
Can someone please advise the correct method to use so that I can dynamically change the Lookup_Array in a Match condition.
The following formula works fine;
=VLOOKUP(F22,A26:O2000,MATCH(A9,A26:O26,0),FALSE)
However based on other criteria I would like the Lookup Array to be different, instead of being A26:026 it would be A34:O34.
From what I understand your question to be, you can use Indirect(). Assuming that cell A1 has A26:O26 (literally typed, in the cell). You can use this formula,
=VLOOKUP(F22,A26:O2000,MATCH(A9,INDIRECT(A1),0),FALSE)
Then, if you want to use another range instead of A26:O26, just replace what's in cell A1.
Thanks guys, i have worked it out for myself please see below if anyone else has the same problem
=IF(J5>=INDEX(TCT.xls!pArray,MATCH(O5,TCT.xls!pGroup,0),5),INDEX(TCT.xls!pArray,MATCH(O5,TCT.xls!pGroup,0),5),J5)
Thanks
I am trying to pull data in Excel using vlookup, but I need to use a cell value and a wildcard. I have tried all of the syntax I can think of with no luck. The current formula is:
=IF(ISNA(VLOOKUP(A640,OpenIPB!A:B,1,FALSE)), 0, VLOOKUP(A640,OpenIPB!A:B,2,FALSE))
The problem is the value in A640 is "102-2028" and the value in OpenIBP that I need it to match with is "102-2028 - RA# 131009-43" Can anyone help me with this? I'm sure there is a cleaner way to go about this, but I'm stuck. Thanks.
Yes, you can use a wildcard in VLOOKUP, just change lookup value to A640&"*"
You can simplify formula with IFERROR if you are using Excel 2007 or later, i.e.
=IFERROR(VLOOKUP(A640&"*",OpenIPB!A:B,2,FALSE),0)