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")
Related
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 add two cells in excel but it gives an #Value! because I believe I am adding the space if error. Is there a way to add without using a 0 for example because I need to copy the formula down and if there is no value, I want it to be a blank not zero. Thanks!
=IFERROR(IF(ISBLANK(B4*J4),"",(B4*J4)),"")+IFERROR(IF(C4="","",VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE))*J4,"")
Try this: =IFERROR(IFERROR(IF(ISBLANK(B4*J4),"",(B4*J4)),"")+IFERROR(IF(C4="","",VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE))*J4,""),"")
Please consider the following solution:
=IF((B4*J4)+ IFERROR(IF(C4="",0,VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE)*J4),0)=0,"",(B4*J4)+ IFERROR(IF(C4="",0,VLOOKUP(C4,Sheet2!$R$1:$S$12,2,FALSE)*J4),0))
I removed the ISBLANK as per my comments above. Only left IFERROR on the VLOOKUP and wrapped everything in an IF to catch in the event that formula returns zero. Regards,
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))
I have an IF formula that is evaluating two cells with data returned from other formulas.
=IF(B5>D5,D5,B5)
Seems simple enough, right? However, when I attempt to use it, it seems to be evaluating the formulas in the cells instead of evaluating the values being returned.
I.E.: If B5 returns 414 and D5 returns 416, I get 416 instead of 414.
What am I missing here?
In my testing, your formula worked for me. Are you trying to display the lower number of the cells? If so, try this
=MIN(B5,D5)
While checking out my VLOOKUP formulas in the calculator I found an interesting fact. VLOOKUP returns all answers as text. So, in order to use the numerical value, place the cell inside the VALUE() function.
=IF(VALUE(B5)>D5,D5,VALUE(B5))
Voila! Works now!
Alternatively, you can place the VLOOKUP inside the VALUE function.
Thanks for your help guys!
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)