I made a simple table to convert from USD and EUR to CAD for my various subscriptions using VLOOKUP. USD works as expected but somehow EUR is returned with #N/A. Am I missing something?
I apologize for asking such a simple question but I just can't seem to figure out what went wrong.
I have recreated your problem, not sure what the issue is but passing following parameter to VLOOKUP seemed to work for me:
=IF(E6="CAD", D6, D6*VLOOKUP(E6, Table1, 2, 0))
Last parameter specifies that you are looking for an exact match, not approximate. But not sure why that is the issue here.
Related
I apologize if the title is a bit vague. I am trying to create a calculator that takes into account how much "scrap" I have, how much is needed to resmelt it, and how many bars recieved.
Currently using:
(=if((amtOwned/qtyToSmelt)<1,,rounddown((amtOwned/qtyToSmelt)*barsMade))
Table and Formula
The problem I am having is you MUST have the QTY to Smelt. But the value returned includes partial quantities.
Ex. 125 Bottle Caps should equal 4 Bars total. Yet it returns 5.
How can i make the formula only account for increments of the bars recieved?
Thank you for any help, again i apologize if this isn't that clear. Im not exactly sure how to express my need in this situation.
I have tried messing around with the syntax and where every argument sits, even this formula is the most recent iteration of what i thought would be needed.
EDIT: I have tried using the TRUNC function and this seems to be working as I need it to. The formula now is:
=TRUNC((AMTowned/AMTneeded),0)*barsRecieved
=TRUNC((136/50),0)*2 This is returning 2 bars instead of 3. Which is exactly what I need.
It appears this is working by truncating the number first then multiplying it. So, 1.5 becomes 1 before being multiplied. This was my guess after doing more research. I had been searching for a while before I posted this but am glad to have learned what I have in searching for this.
There is a tool for auditing formulas. To see it go to Formulas > Evaluate Formula.
So here is you formula =IF((E3/C3)<1,,ROUNDDOWN((E3/C3)*D3,0))
Have you tried the calculation on your regular calculator? To me it is doing what you would expect. (125/50)*2 = 5
screenshot
I want to fine where number 33 will be, if it is between 31-40, gives 4 as answer.
do I have to user If with hlookup, how can it be done?
I believe I have solved you issue, a picture contains an example. It is possible to use HLOOKUP but i believe your question might be incorrect. If you were looking for 33 it would be in the 3rd position between 31-40 and not return #4 as you previously mentioned.
As the title says, I'm trying to calculate a percentage that represents productivity. I have a formula that almost works to change the colors (conditional formatting) but it seems to work in reverse. I can't figure out how to make it work and I'm hoping its something simple and I'm just dense after working on it for a day.
Below is my formula that I have so far.
=VALUE(LEFT(E18,LEN(E18)-3))*(J18/K18)/D18>95%
As I said, I hope that it's stupid simple to make it work and I'm just being stupid.
This is the cells in question in the event the clarification of seeing it will make more sense:
Links to pages I hoped would help:
1st: Not quiet right.
2nd: VBA so not it either.
3rd: Again just not something I can pull enough from.
With some outside help, I was able to get this working. Below is the code that works for my setup with conditional formatting.
=(D18/VALUE(LEFT(E18,LEN(E18)-3)))/(F18/G18)>0.95
=(D18/VALUE(LEFT(E18,LEN(E18)-3)))/(F18/G18)>=0.9
=(D18/VALUE(LEFT(E18,LEN(E18)-3)))/(F18/G18)<0.9
I'm having problems trying to do this formula and it just doesn't work. Can anyone help me?
=IF(JH2="13",CEILING(JD2/0.68+13,0.5)-0.01,""),IF(AND(JH2="6.95",(JD2/0.68))<50,CEILING(JD2/0.68+3,0.5)-0.01,CEILING(JD2/0.68+6.95,0.5)-0.01),IF(AND(M2="CA",ISNUMBER(SEARCH(S2,"INCONTINENCE"))),CEILING(JD2/0.68+6.95,0.5)-0.01,""))
Just a FYI it reads,
IF Freight price is 13 THEN to Divide the Cost price by .68 and ADD the 13.
IF Freight price is 6.95 AND the Cost Price Divide .68 is LESS than $50 THEN add $3.00 ELSE ADD 6.95.
IF M2 (which is Unit of Measurement) has CA AND Column S2 (which is the category) contains the word "Incontinence" THEN calculate Cost Price Divide .68 and add 6.95 Regardless.
Everything is rounded up.
But can't get the Damn thing to work.
First some nagging and whining.
Unreadable source code.
Reference to cells without provided values.
Now the answer (at least a part of it, depending on me missing something else).
If you start breaking up the formula, you'll notice that the first AND has the condition of equality first (that's correct) but then you'll see that the second condition only is a division, whereas the inequality comparison with 50 is put outside.
I believe that's your error. But that's based on the assumption that I got the formula correctly.
As a general suggestion for working with complex formulas in Excel, I usually do a single step at a time (putting the sub-results in separate columns to verify that they're correct). When done and confirmed, I can merge them into a single one.
Try this, it is untested:
=IFERROR(CEILING(IF(JH2=13,JD2/0.68+13,IF(AND(JH2=6.95,JD2/0.68<50),JD2/0.68+3,IF(JH2=6.95,JD2/0.68+6.95,IF(AND(M2="CA",ISNUMBER(SEARCH("INCONTINENCE",S2))),JD2/0.68+6.95,"")))),0.5)-0.01,"")
I have been researching this and I have found several different iterations of the formula, but I just can't get mine to work. I am trying to create an if/and formula in a calculated field. I am trying to show data based on three criteria.
If the create date is greater than month 2 and less than month 8 then OCTOBER 1
If the account change type is Immediate: Error or Business Case then MONTH([CreateDate])+1 and 1.
Otherwise MARCH 1
This is the formula I have:
=IF(AND([Created]>2,[Created]<8),"OCTOBER 1",IF([Account Change Type]="Immediate: Error or Business Case"),"ASAP","MARCH 1"))
These are the forums I have looked at and still can't get it:
Stack Overflow
Social TechNet
StackExchange
The simple answer that pops to mind is that you have an extra parentheses at the end of that formula. If you want to test these formula syntax wise, just put them in Excel.
If you're having another issue beyond that, can you provide an error or specific symptom of some sort?