Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to retrieve the values of the latest 6 rows that are not blank. As you can see in the picture, I would get all values from 54 to 39, but if the two blank cells had numbers, then counting would stop at 45.
Visullay
On an other tab I have an INDEX function that attempts to grab these numbers but only works for the first value found.
This for example gives 54, the first value. =INDEX(Database!b5:b50,MATCH(TRUE,INDEX((Database!b5:b50<>0),0),0))
I would like to extend this and use it to call any nth value, preferably the top 6. So every time I update the dates and add new value, the top 6 cells auto update.
You are almost there. Just add a +n to the last argument of the outer INDEX formula. For example, this gets the next item, 51:
=INDEX(database!B5:B50,MATCH(TRUE,INDEX((database!B5:B50<>0),0),0)+1)
Related
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 4 years ago.
Improve this question
I'm working on a budgeting spreadsheet that has a different replacement cycle for equipment and I want to visualize when everything will be scheduled to be replaced.
Column 1=name, Column 2=deployed, Column 3=expected life, Column 4=retire date, Column 5=price
I want to have another table next to it that shows the next several deploy dates (for the next 15 years) based on the expected life. Right now, I'm having to manually count over X number of cells and enter in the price and then count over again.... for each row.
I know there has to be a automated way to do this, but I'm new to excel macros and I've looked at several functions, but can't get anything figured out. What functions should I be looking at?
A formula like:
=IF((G$1-YEAR($B2))/$C2=ROUND((G$1-YEAR($B2))/$C2,0),$E2,"")
Should do the trick
(the above for column G, it is assumed the year is in G1)
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
How would I go about looping through a row of values to see whether or not the row is a duplicate of another row, and then remove the duplicate? For example, in the below screenshot the duplicate rows would be 1 & 8, 2 & 9. I would want to keep 1 and 2 and just remove rows 8 and 9.
Use Remove Duplicates within the tool bar at the top of excel, this allows you to remove duplicate entries but keep the first record found. See here for more information.
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 6 years ago.
Improve this question
I have a column with multiple labels that I need to number. eg:
A|1
B|1
C|1
A|2
B|2
B|3
C|2
A|3
A|4
So each A gets listed 1 through 4 even though there are Bs and Cs in between. The Bs and Cs also need to get numbered.
If the first letter is in A2, place this formula in B2 and copy down to the last letter:
=COUNTIF(A$2:A2,A2)
What this does is place the count of all the prior occurrences of the letter on the current row (including the current row) in the cell.
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 7 years ago.
Improve this question
I'm trying to calculate a difference in numbers with Excel 2010. Let's say I have four cells (110, 108, 106 and 104). It's pretty clear that the difference between the four numbers in total (so starting and ending one) is 6. This is the answer I want in the fifth cell; 6. However, if I add another cell between cell 4 and 5 (4 being the lowest number and 5 being the difference), I want the newly created 6 cell (the old 5 - difference answer) to also include the new fifth cell, which is - for example - 100, making the difference 10.
=MAX(A1:A4)-MIN(A1:A4)
will return the answer you're looking for, and the ranges will dynamically update if you insert cells into the A1:A4 range.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Lets say I want to average every non empty cell on sheet 1 column j how would I accomplish this?
=AVERAGE(Sheet1!$J:$J)should be all you need! :-)
Let's do a SumProduct and Count -IF for the non-zero numbers only. In this solution, it also consideres negative numbers (SumProduct formula). Then use those two results to count given that AVERAGE is good yet it takes zeros in to consideration. If you don't have zeros but just texts and numbers, you are better off with AVERAGE, otherwise give this a try and adjust the logic accordingly (to consider negative numbers or not):
Depending on the version you are using, you can try out AVERAGEIF as well.