AVERAGEIF Excel function into Google Spreadsheet - average

Alright, I was able to get it to get this formula working within excel:
=AVERAGEIFS($B$8:$B$88,$B$3:$B$83,"Coupons",$B$4:$B$84,"Holiday")
The formula averages the Open Rates for specific data-sets depending on their Type and Sub Type.
If B3 equals Coupons and B4 equals Holiday then paste the Average of the Open Rates for all the campaigns that contain the first two attributes into another spreadsheet.
As we all know, Google Spreadsheet does not recognize AVERAGEIF. I have been attempting to make a hybrid with the Formula Array function coupled with either FILTER or AVERAGE to no avail. Any help would be much appreciated. Thanks.
Image of spreadsheet

Try this version
=arrayformula(AVERAGE(IF($B$3:$B$83="Coupons",IF($B$4:$B$84="Holiday",$B$8:$B$88))))

The new version of Google Docs has an averageif function

Related

Google sheets dynamic list using the FILTER function with dates?

I'm trying to create a simple checkbook register on one sheet, then have monthly spreads where the data is separated out by that month. I've used =FILTER() before to automatically generate a list on a separate sheet based on the conditions set. But for some reason I'm struggling when it comes to dates.
Here's the function I'm trying to use (which isn't quite right)
=FILTER('Checkbook Register'!B14:J1000,TEXT('Checkbook Register'!B13:B1000, "mmmm")=B2)
B2 has the current month as a string December in this case.
The data I'm trying to copy to a another sheet as it's entered is in this format
Date
No.
Description
Debit
Credit
Balance
Cleared
11/20/2021
#
Transact 1
1.00
6.00
y
12/1/2021
#
Transact 2
1.00
5.00
y
12/1/2021
#
Transact 3
1.00
4.00
n
What I'd like it to do is if the Date column matches the current month listed in B2 then add those transaction lines to the new sheet. I feel like I'm making this more complicated than it really is.
I've used this formula before to make the list if the checkbox is true
=FILTER(T5:X22,S5:S22=TRUE)
and loved the functionality of it. I thought something similar would be very useful in my personal budgeting spreadsheet rather than entering transactions on each individual monthly spread. I could track them on one main sheet and use the filter function to split them out.
Any advice would be greatly appreciated!
I was close! In case anyone uses this in the future, my ranges were one row off. ^-^
B14:J1000 and B13:B1000
=FILTER('Checkbook Register'!B14:J1000,TEXT('Checkbook Register'!B14:B1000, "mmmm")=B2)
After correcting, this worked as expected.
just in case B2 = December and B column contains empty cells use:
=FILTER('Checkbook Register'!B14:J,
TEXT('Checkbook Register'!B14:B, "mmmm")=B2,
'Checkbook Register'!B14:B<>"")

SharePoint List calculated value

I am using SP lists to maintain users PTO and a Master list to forecast utilization hours based on their goals as follows. I am on SharePoint 2013, what calculated formulas can I use to get the Forecast hours in the Master list? Thanks much!
Included are sample PTO & Master List
MasterList
PTOList
I’m afraid that we can not achieve this with calculated column. We can not get look up value in calculated column formula. It is even more impossible for us to get the sum of all hours based on time and a specific person.
I recommend you to create an event receiver on PTO_List(item added) to achieve this.

How to return a cell value if the date in a range of cells is today in google sheets

I currently have a Google Sheet, with numerous sheets in it, to track contract deadlines for different clients. One of these sheets shows me all of the deadlines in Columns E:M for every contract. Each row is a separate contract.
I'm trying to create a separate sheet that will show me the client's name, found in column A, if a date in columns E:M is Today. That way I can look at one page and see all the clients that have a deadline today. Here is what I tried with no success:
=if('U/C(Dont Edit)'E2:M2=TODAY(),'U/C(Dont Edit)'A2,"")
"U/C(Dont Edit)" is the sheet that shows all of the contracts.
I believe the problem lies when I try to apply "=Today()" to a range(E:M). It seems to work fine if I just use E2=Today(). It looks like I could accomplish my goal using If statements within If statements, but that gets very messy very quickly and I'm hoping there is a better way.
Thanks in advance for your help.
You can do it with the COUNTIF() function per row:
=IF(COUNTIF(E2:M2,TODAY())>0,A2,"")
But I think a better solution is to use the FILTER() function. It will give you a list of names:
=FILTER(A2:A,(E2:E=TODAY())+(F2:F=TODAY())+(G2:G=TODAY())+(H2:H=TODAY())+
(I2:I=TODAY())+(J2:J=TODAY())+(K2:K=TODAY())+(L2:L=TODAY())+(M2:M=TODAY()))
I suggest #dePatinkin's solution (for and additional column, say N, containing the COUNTIF formula from Row2 downwards) in combination with a query (in another sheet):
=query('U/C(Dont Edit)'!A:N,"select * where N is not NULL")
This assumes your existing sheet has the columns labelled.
You might combine the above with Conditional formatting to indicate which column has the date in it (today) that triggered the row selection.

Can I set conditions for how values display?

I'm not sure if this is the best way to ask the question, but I can't think of a better one. I am new to Crystal Reports and have been basically left to figure it out on my own with just some resource books and YouTube.
My issue is this: I am building a report for a school that displays the next year's course selections. The report is pulling the values from an online form the students fill out and displays results on the report with two names, let's call them "report.name" and "report.value". "report.name" is an arbitrary value that the HTML of the form uses. I am wondering if it's possible to give Crystal a set of conditions so that I can format the way it displays to be a little cleaner.
Example:
CurrentMathClass Geometry
NextYearsMathClass Algebra 2
ElectiveChoice1-Grade10 Spanish 1
Right now the report is showing it like this because those are the values it is seeing. I would like it to be like this:
Current Math Class Geometry
Next Year's Math Class Algebra 2
Elective Choice 1 Spanish 1
Is there a way to give CR a set of conditions that tells it to print something different when it sees specific values, without removing the 'Name' field from the report?
Sorry if this questions is all over the place, I'm having a tough time organizing my thoughts. I appreciate any and all help.
Look to the right of Crystal. You'll see "Formula Fields".
Create a new formula. Call it #namechange or something.
If {report.name} = "CurrentMathClass" Then "Current Math Class".
Drag that formula object onto the report.

Sparkline based on Expression using custom code

I have an SSRS report which is reporting sales grouped by Month. One of the columns in this report is a calculated fields which takes 2 values and passes them to a custom code routine that is defined for this report. The textbox that is populated with the following code:
=Code.DivideBy(ReportItems!textbox21.Value, ReportItems!EarnedIncome1.Value)
All this Custom Code does is to divide the First Parameter by the Second Parameter (in this case whatever is in textbox21/EarnedIncome). The response is them shown on the screen as a percentage.
Below is an example of the report:
1 http://www.propelpos.com/images/screenshot002.jpg
This worked great. What we are trying to do now is to graphy the % that is in the BDX Loss ratio column which is figured out by the formula above (dividing Losses by Earned Premium)
When I try to copy the expression in the chart data and set the Category Groups to PeriodYearMonth (same as all the others), then I get a straight line.
I have no idea where to go next. Any ideas would be much appreciated.
I agree with #Neil. You can also Add the Calculated field in you data set properties. Take a look at the following screen. You can set the expression to calculate the data for your line chart.
Hope this helps!
I would suggest doing the calculation in your query and then using that computed column in SSRS. If you need help figuring out how to do that, let me know.