Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to automate a bit one of my Excel sheets.
I have the following structure:
The value on A2 is higher than A5 and lower than A6. Therefore, B2 should be equal to "Y" (B6). If A2 was equal to 101.000, then B2 should be equal to "A" (B15).
Is there a formula to do that?
Assuming that the F was a typing mistake and that you meant A instead, you can use INDEX and MATCH in the following way:
=INDEX(B5:B19,MATCH(A2,A5:A19)+1)
Note: if you have a value above the highest number or below the lowest number, you will get an error, and since you didn't mention anything about those cases, I won't include a workaround for those, but if you can have such situations, let me know and I'll add the workaround(s).
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
=Indirect("D"&H4+1)
Can anyone explain what this formula does in an Excel sheet?
H4 will have a row number
H4+1 will add one to that number
"D"&H4+1 will create a string that looks like a valid cell address.
Indirect("D"&H4+1) turns that string into an actual valid cell address and will return the value in that cell.
But note that INDIRECT is Volatile and should be avoided when possible. Use INDEX instead:
=INDEX(D:D,H4+1)
Which does the same without the volatility.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Require assistance with excel formula to subtract numbers from cells F2 & I2 if no data is in cell K2. If data is in cell K2,then I need formula to subtract F1 & K2 only.
Well, based on what you asked and what I understand, then the following may help:
If you are going to drag this down then you may need to control which cells move.
Edit, just spotted you said subtract so:
=IF(K2="",F2-I2,F1-K2)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am after a clever combination of Excel formulas that will be able to produce what I have manually typed into the yellow highlighted boxes on the screenshot.
What I need to produce is essentially, for the range of months on the far right column, to count each instance of it and order each one starting with 1 and incrementing by 1 until it changes to the next month.
Screeshot example
I'm wondering if someone has in their brain a nice combination of nested formulas or something similar ready to go they could enlighten me with?
Much appreciated.
I used column A for the range of Months starting from row 1. In B1 put 1
In B2 put =COUNTIF($A$1:A1,A2)+1 and drag down.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm a student who's currently going through exams and to help revise I'm making a spreadsheet to keep track of all the marks I've got for questions in example questions.
REFER TO SCREENSHOT & SPREADSHEET DOWNLOAD
I need the average percentage correct to be calculated for each topic.
Download of the spreadsheet for you to test
Screenshot of the spreadsheet I've set up
Considering you already have the count of each question in column 'P' then that is helpful.
You can use SUMIF(G:G,O29,J:J)/P29 to calculate that percentage for each cell in column 'Q'. Once you enter that formula into that cell then simply drag it up and down to fill up all your desired cells in column 'Q'.
You may notice that you will run into a DIVISION BY ZERO error. You can avoid this by surrounding the SUMIF function with an IF function that will simply display a blank cell rather than try to calculate anything if the count of questions is ZERO.
EXAMPLE: IF(P29=0 , "" , sumif(...) )
Note: Once you auto drag the equation choose "fill without formatting" to keep your formatting clean.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to verify if a name like C1"hans" c2 "mueller" is present on a Range also with "firstname" "lastname" in each field.
I tried this formula:
=IF(COUNTIF(sheet2!$D:$E;D2:E2);"Yes";"No")
But this just works for one field like
=IF(COUNTIF(sheet2!$D:$E;D2:D2);"Yes";"No")
Please help me to get the two values verified if it is present on the database.
I think what you're looking for is COUNTIFS (2007+):
=IF(COUNTIFS(sheet2!$D:$D;D2;sheet2!$E:$E;E2)>0;"Yes";"No")
Backwards compatible would be SUMPRODUCT, but you don't want to use whole columns with sumproduct, so adjust ranges to suit:
=IF(SUMPRODUCT(--(sheet2!$D$1:$D$100=D2);--(sheet2!$E$1:$E$100=E2))>0;"Yes";"No")
You may be getting the criteria paramater of the COUNTIF function incorrect? I believe you are trying to see if values in C1, C2, etc. occur in columns D and E?
If so, then you'd want to change your formula to:
=IF(COUNTIF(Sheet2!$D:$E,C1),"Yes","No")
Which would tell you if the value in C1 occurs in either column D or E.