Excel Formula Solution Required - excel-formula

I am looking for a solution to the following issue and I just don't have the expertise.
I have a column of dates and beside that column I have a column of numbers.
I would like a formula that would add up the numbers until I hit a certain threshold (designated number)
For example let's just say I have 9 rows in column B all with 100 and beside each number in the column A is a date. I would like to know which date in column A represents a Number in column B that is equal to or less than 750
Obviously it will be row 7 but I need the formula.
Thanks in advance and looking forward to any help.

use:
=INDEX(A:A,MATCH(750,SUMIF(OFFSET(B1,0,0,(ROW(B1:INDEX(B:B,MATCH(1E+99,B:B))))),"<>0")))
Depending on one's version this is an array formula and may need to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.

Related

Averaging cells in one column based on date of another column in Excel 2010

I have searched high and low on the internet and still can't find a solution to what seems to be a simple issue so I am here hoping someone will enlighten me.
I have a table(not pivot) in Excel 2010 and I need a formula that will calculate the average of a group of cells in column B based on the date in column A and display it in column C but only on the first line of the date(s).
Columns A and B are static. Only column C needs a formula.
Thanks in advance for any ideas.
Here is what I want the table to look like when calculated:
Solution 1 - using a helper pivot table
You can first use the data in Column A and B to make a pivot table such as the following, suppose the pivot table is located in Column F and G, change the value field settings of Sys to summarise the value filed by Average :
Then in cell C3, enter the following formula and drag it down:
=IF(A3=A2,"",VLOOKUP(A3,F:G,2,0))
Solution 2 - using array formula
In cell A3, enter the following formula and then press Ctrl+Shift+Enter upon finish, then drag the formula down:
=IF(A3=A2,"",AVERAGE(IFERROR(List_Sys/(List_Date=A3),"")))
Find attached :D I used Averageif function, and if to verify if any change in date. then just scrolled down.
Screenshot:
Try following formula-
=IF(COUNTIF($A$3:$A3,A3)=1,AVERAGEIF($A$3:$A$19,A3,$B$3:$B$19),"")

Looking for a formule

I'm a novice to Excel. I don't which formula to use. I want to set up a budget for 12 months, that quite easy ex. 12000/12= 1000 in 12 columns. I need a formula for when one column answer is changed by hand lets say to 2000, that will the remaining columns answers automatically change to 909.09. I don't which formula to use and if its do able?
Thanks for your help
Kind regards
Johan
You could add a helper column in which you keep track of the manually entered values.
Let's say the Total value (12000) is in A1, months are in column A2:A13 and the helper column is column C.
Column B would then be;
=IF(C2<>"",C2,(A$1-SUM(C$2:C$13))/(12-COUNT(C$2:C$13)) for cell B2, simply extend to the other cells in column B

Excel SUMIFS formula on using operator inside criteria

SUMIFS(C1:C5,A1:A5-B1:B5,">5")
Is the above formula workable in excel?
Column A and Column B contain dates
Column C contains quantity.
What I need is When Column A minus Column B greater than 5 then sum all the quantity.
I understand this is able to do with creating a new column to get the difference in date first then use the computed value inside SUMIFS formula.
However, I really try to avoid adding an extra column.
Thank you
You can use the following formula:
=SUMPRODUCT(IF((A1:A5-B1:B5)>5,C1:C5))
this is an array formula, so press ctrl+shift+enter to calculate the formula.
Hope this works for you.

How to return strings which occur more than 4 times in an excel doc

Fairly new to excel, I have a document with rows and columns filled with names. Basically i want to be able to find if any names are there more than 4 times, and if so which names these are. What is the formula I would need to do this? I've tried iterations of countif and index but I just cant seem to get it right. Thanks in advance
So, if you have your input values in column A:A. Enter this formula into B1 and drag it down:
=IF(AND(COUNTIF($A$1:$A1,$A1)=1,COUNTIF($A:$A,$A1)>=4),$A1,"")
And then you get your final result without blank cells in C1 (and down) with this formula:
=IFERROR(INDEX($B$1:$B1000,AGGREGATE(15,6,(ROW($B$1:$B1000)-ROW($B$1)+1)/($B$1:$B1000<>""),ROWS(C$1:C1))),"")

Excel: Calculate the frequency of a particular month in a column of date cells

I have a column with dates of events. ( let's say: A1:A100 )
Now I want to use a formula to find or display the number of events that occurred in January 2013.
Any ideas ?
What you need is an array formula, sometimes called "CSE" formulas because of the way you have to enter them:
Pick your destination cell and select it.
Then, in the formula bar, enter:
=SUM(IF((A1:A100>=DATEVALUE("1/1/2013"))*(A1:A100<=DATEVALUE("31/1/2013")),1,0))
And instead of [enter], press [ctrl]+[shift]+[enter]
I really don't understand why MS make you do the CSE thing- surely it's clear from the format that it's an array formula?
How about using Countifs to find records between a start and end date? You can either type the dates or point it to two cells containing the dates. Not sure which version of Excel you are using, but CountIfs is not supported in 2003 but beyond.
=COUNTIFS(A2:A100,">="&C2,A2:A100,"<="&C3)
or
=COUNTIFS(A2:A100,">=1/1/2013",A2:A100,"<=31/1/2013")
Use the FREQUENCY formula together with an auxiliary MONTH function:
Enter the number 1-12 in your results table (e.g. in D1:D12)
Select the the twelve adjacent cells (in the example it would be E1:E12) and enter =FREQUENCY(MONTH(A1:A1000),D1:D12) - enter the formula as array formula (i.e. press Ctrl-Shift-Enter instead of Enter)
In case you want to also separate by years, you need to modify your keys in column D and your formula to derive the key, e.g. instead of MONTH(A1:A1000) you could use MONTH(A1:A1000)&"-"&YEAR(A1:A1000) - or (if purely used in an one Locale environment TEXT(A1:A1000,"MM-YY").
A couple of ideas:
Use the SUMPRODUCT formula to summarize by month. See example: http://www.contextures.com/xlFunctions04.html#SumProduct
Use a Pivot table:
Add a column B =month(a1). Fill down.
Add a column C of all 1s.
Give A, B, C header names: Date, Month, Count.
Insert a Pivot table based on A,B,C. Now you can easily Sum by Month.
A formula (if you know exactly which month you are looking for):
Perhaps do a fill down in column B with a formula like this:
=if(and(month(a1)=1,year(a1)=2013),1,0), then sum() column B?
Use Consolidate functionality. Take a look at: http://www.techrepublic.com/blog/window-on-windows/use-consolidate-to-summarize-excel-data-without-sorting/6521

Resources