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.
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
I'm trying to do something similar than this: https://exceljet.net/formula/score-quiz-answers-with-key
But it is not the same because I have different "points" for each question.
For example, correct answer for question 1 gives you 2 points, but correct answer for question 10 gives you 6 points.
I need to get the total of points for each student based on their answers and how many points each answer gives them.
This is the sheet with the answers and points:
Please try this formula. Paste to R5 (first result row) and copy down.
=SUMPRODUCT(--(B5:Q5=B$1:Q$1),B$3:Q$3)
It would probably be easiest to add more cells to calculate how many points each student got for each question. Then you can sum those up and divide by the total.
Here's an example.
screenshot
Give a try on below formula.
=SUM((B5:Q5=$B$1:$Q$1)*($B$2:$Q$2))
Matrix multiplication will also give you desired result.
=MMULT(--(B5:Q5=$B$1:$Q$1),TRANSPOSE($B$2:$Q$2))
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.
Hi All,
Can somebody please help me with if and else in excel.
My codes seems correct when doing it separately, but when combining them - it does not work.
Codes are as follow:
=IFS(E7=Sheet2!$B$4,Sheet2!$C$4,IF(E7=Sheet2!B5,Sheet2!$C$5,"10"),IF(E7=Sheet2!$B$11,Sheet2!$C$11,IF(E7=Sheet2!B12,Sheet2!C12,Sheet2!C13)))
the last option still give me #value error.
have the sheet 2 that includes:
Merit Score
Low 2
Medium 5
High 10
Error Score
Low -2
Medium -4
High -10
Your formula seems not to take the value of D7 into consideration. Therefore I wonder whether it should. My formula below takes a different approach. I think it's easier to manage than IFS. Please try it.
=INDEX(IF($D$7="Merit",{2,5,10},{-2,-4,-10}),MATCH($E$7,{"Low","Medium","High"},0))
The begining of the code is wrong. See if this works.
Wrong
=IFS(IFE7=Sheet2!$
Right
=IFS(E7=Sheet2!$
Regards
How do you convert time in [h]:mm format to number in excel
for example:
35:39 to 35
03:15 to 3
17:55 to 17
I tried dividing 61:32 (in [h]:mm format) by 01:00 and got 13, but I want 61.
Please also show how to round up or down,
for example
36:43 to 37
36:14 to 36
Thanks
Try this formula.
=INT(A1*24)
As barry mentioned you can use =ROUND(A1*24,0) for rounding up
If data are hh:mm, then =MINUTE(A1/60+TIME(0,0,30)). This gives the rounding as well.
Without rounding: =MINUTE(A1/60).
EDIT:
As commented by barry houdini, this only works for results less than 60, so its use is limited (and, in particular, for one of the cases exemplified by the OP). It could be adapted to meet the demands of the OP, with a more convoluted formula. There is no use in mending the formula, as the answer by Siddarth Rout works ok.
I am leaving the answer here only for the case someone (perhaps even the OP) finds the idea used here useful.