I am trying to calculate how many class registrations my company has received per month, per year. ]
So far, I've been able to do this using SUMPRODUCT, (for example:
=SUMPRODUCT(--(DATE(YEAR($A$2:$A$10),MONTH($A$2:$A$10),1)=DATE(2013,1,1))))
but it is a lot and I'm hoping there's an easier way.
I have about 16,000 Registrations total to sort through with registration dates ranging from 2003 to 2014. Each registration has the following info:
the Registration Date, Course Name, Class Date, Name, Title, Company, City, State, Type, and Paid.
What I really want to be able to do now is show how many class registrations we received per month, per year but separate it out for both private and public types. I have not figured out how to do this yet.
Please help!
I tried to include an image of part of my current excel spreadsheet, but it said the site told me I need "at least 10 reputation to post images"
You can still use SUMPRODUCT.
You could use the following:
=SUMPRODUCT((YEAR(A1:A3)=2013) * (MONTH(A1:A3)=1) * (F1:F3 = "Private") * 1)
And:
=SUMPRODUCT((YEAR(A1:A3)=2013) * (MONTH(A1:A3)=1) * (F1:F3 = "Public") * 1)
Where A1:A3 is the range that has your dates and F1:F3 is your flag that denotes public or private courses.
You can also alter the formula to:
=SUMPRODUCT((YEAR(A1:A3)=YEAR(G3)) * (MONTH(A1:A3)=MONTH(G3)) * (F1:F3 = "Private") * 1)
Where Cell G3 is any day in the month/year you want to calculate for.
Related
I have downloaded a data table from a sharepoint list website into a excel file and have filtered for the keyword 'Contract' which narrowed down my results from 1000 rows to approx 180 rows.
I am tasked with determining the # of contractors Between date X and Y.
The filters I would normally use are:
Employment Type = Contract
Contract Start Date >= 10/01/2017
contract End Date <= 05/31/2018
The issue I am having is all this data is contained within 1 cell and there are two variations of spelling for 'Contract' (Contract and Contact).. so I also have to factor this is.
Here is a small snippet from 1 of the cells:
"Position":"Account Services Agent","Manager Name":"xxxx","Manager Phone":"43524325","Employment Type":"Contract","Contact Start Date":"01/08/2018","Contact End Date":"03/30/2018","Beeline Request ID number":"67160"},{"ID":"1111","Name":"xxxx ","Position":"Account Services Agent","Manager Name":"xxxx ","Manager Phone":"4444444","Employment Type":"Contract","Contact Start Date":"01/08/2018","Contact End Date":"03/30/2018","Beeline Request ID number":"67160"},{"ID":"333333","Name":"xxxx ","Position":"Account Services Agent","Manager Name":"xxxxx ","Manager Phone":"44444","Employment Type":"Contract","Contact Start Date":"01/08/2018","Contact End Date":"03/30/2018"
I need to somehow determine how many contractors there are that meet my date range criteria
Any ideas/solutions would be greatly appreciated.
I have two important details that are inputted into an excel table, Job_Start_Date and Job_Hours (meaning the hours required to complete the job). Given certain working hours (eg 7:00am-3:30pm) I need to calculate what day and what time they will finish. I already have that basic bit working, but I cannot for the life of me figure out how to skip weekends in that calculation (Note that there is a boolean for Sat/Sun that defines whether that day should be skipped).
Here is an example of the data
and an example of the data visualization: (The DIV errors are because employee count equals 0, pay this no mind.)
.
This is the formula used in the visualizer (a massive index match)
=IFNA(INDEX(INDIRECT(Allocation!$A$1), MATCH(1,($A3 = INDIRECT(Allocation!$K$1))
* (C$1 >= INDIRECT(Allocation!$C$1)) * (C$1 <= INDIRECT(Allocation!$D$1))
* IF(C$1 = INDIRECT(Allocation!$C$1), ($B3 >= INDIRECT(Allocation!$E$1)),
($B3 >= INDIRECT(Allocation!$I$1))) * IF(C$1 = INDIRECT(Allocation!$D$1),
($B3 < INDIRECT(Allocation!$F$1)), ($B3 < INDIRECT(Allocation!$J$1))), 0)),"")
As you can see in the image, Saturdays need to be skipped (being FALSE), but it is still shown on the visualizer. However, if I include a statement that matches the Saturday condition (so it only shows up on a Saturday if TRUE), it will not alter the end date and thus will not push the final day to Monday.
Essentially the question is: How can I skip days but preserve the 'working hours'. This must be done in excel formulas in the same Job table (first image).
Thanks.
Here is how I got it working using WORKDAY.INTL.
First is a nested IF to determine which weekend type to use for the workday.intl function
Weekend=IF(OR([#[JOB SATURDAY]], [#[JOB SUNDAY]]), IF(AND([#[JOB SATURDAY]], [#[JOB SUNDAY]]), -1, IF([#[JOB SATURDAY]], 11, 17)), 1)
Then a second if statement that references that value and then spits out the correct date
=IF([#[Weekend]] = -1, [#[JOB START DATE]]+[#[Working Days]], WORKDAY.INTL([#[JOB START DATE]], [#[Working Days]], [#[Weekend]]))
I am trying to set up a expense tracker for my family for new years. I want to have the excel sheet give me a total for what i spent in cash, credit and check
I have a sheet set up similar to the following
I want to be able to at the end of the month see what i spent in
cash = 100.00
check = 12400.00
credit = 494.00
I have tried the following but they do not seem to work...
* =SUM(IF(C5:C42="Cash",D5:Z42))
* =SUMIFS(D5:D45,C5:Z45,"*CASH*")
* =SUMIF(C:C,"CHECK",D5:Z43)
Can anyone help me with this?
Thanks!
Or you can do it with a multiplication, so where J2 contains the payment method
=SUMPRODUCT($D$2:$G$7*($C$2:$C$7=J2))
If the payee is coulmn "B", then:
=SUM(SUMIFS(D:D,C:C,"check"),SUMIFS(E:E,C:C,"check"),SUMIFS(F:F,C:C,"check"),SUMIFS(G:G,C:C,"check"))
I modified for a table startingin coumn "B".
In cell A1 we have this:
=CUBEMEMBER("OurCube","TAIL([Date].[Date - Calendar Month].[Calendar Day].MEMBERS,1).item(0)","TargetMember")
It works fine and returns a single member that is yesterday.
In A2 we have a formula that is attempting to return the actual date - so I thought the CUBEMEMBERPROPERTY function would work:
=CUBEMEMBERPROPERTY("OurCube",A1,"member_caption")
The above returns #N/A
I don't know what CUBEMEMBERPRPERTY does but apparently it doesn't mean what you think it means!
If you need to get a certain property of a field according to another field, this is the way to do it:
Let's say, I wanted the Financial Year's month name (FY Month Name) based on a certain date key (I live in Australia, the financial year finishes at June):
=CUBEMEMBER("ThisWorkbookDataModel", "EXISTS([Dim Period].[FY Month Name].Children, [Dim Period].[Datekey].[20160731])")
And if the value of "20160731" has been in a certain cell, it would go like this:
=CUBEMEMBER("ThisWorkbookDataModel", "EXISTS([Dim Period].[FY Month Name].Children, [Dim Period].[Datekey].["&A8&"])")
Both would give me the correct answer: 01 - July
And I would like to thank the following posts for their help:
https://wessexbi.wordpress.com/2014/02/16/a-cubememberproperty-equivalent-with-powerpivot/
http://www.mrexcel.com/forum/power-bi/730287-function-cubememberproperty-always-return-n.html
I'm making a spreadsheet in excel to help me understand how starting a part-time business on top of my full time job might affect my tax. I need to do this because I'm very close to my next UK tax bracket and I want to know exactly how it might affect my finances.
As part of this I'm trying to write an excel formula that will add two numbers then check if this new number is greater than a third number. I will refer to the two numbers added together as A and the third number as B. If A is not greater than B then I will multiply by 20% to find out how much of it is owed in tax. If A is greater than B I will subtract B from A to create number C and multiply B by 20% and C by 40% and add the two together to produce the final number I need. Can someone please xplain to me how to script this in Excel? I've looked for online examples but I'm not finding the language very penetrable. If I was using a scripting language I was more familiar with the code would look like this:
float taxThreshold = 42011.00;
int income = foo;
if(taxThreshold < income)
{
float higherRate = income-taxThreshold;
float standardTaxOwed = taxThreshold * 20%;
float higherRateOwed = higherRate * 40%;
float finalTaxOwed = standardTaxOwed+higherTaxOwed;
}
else
{
float finalTaxOwed = income * 20%;
}
I'm sure this is very simple to do, I just don't get the excel syntax. Can someone show me how this should be done? You'd not only be solving this problem but also giving me a means of translating from my current scripting knowledge into excel.
The easiest way is to store your 4 input parameters in some cells - and then name them. To do so, select the cell and type a meaningful name into the field that shows the address (i.e. left of the formula bar).
Once you have done this, you can simply use this formula:
=IF(Income>Threshold,Threshold*StandardTaxRate+(Income-Threshold)*HighTaxRate,Income*StandardTaxRate)
Without the naming, the formula would be something like this:
=IF(B2>B1,B1*B7+(B2-B1)*B8,B2*B7)
Both formulas will calculate you the tax you'd need to pay. If you want it more explicit, I'd recommend a layout such as this:
The formulas would read:
C7: =IF(B2>B1,B1,B2)
C8: =IF(B2>B1,B2-B1,0)
D7: =B7*C7
D8: =B8*C8
HTH!