I have been banging my head against a wall for a few days with trying to make a COUNTIFS formula pick up four variables that may or may not be included in the criteria depending on what the user is wanting numbers on.
I have a front sheet where I want to show the number of unique events by a geographical area depending on the risks selected in the checkboxes in column F. There are some events that have more than one risk attributed to it so if only Risk-C was selected then all events with Risk-C flagged as Yes in the data set should be counted in the COUNTIFS in column B of the front sheet.
If an event has Risk-C and Risk-M flagged as "Yes" in the Data Set then they need to be counted even if only the Risk-C checkbox is ticked in the Front Sheet. This is what I'm struggling with at the minute.
Could someone please have a look at the attached screenshots and offer any pointers as to what I need to do to include the Checkboxes or True/False statements as part of the COUNTIF criteria? Or is there an alternative formula / function I need to look at? I use Excel 2016.
Many thanks in advance for anyone able to help me!
Andy
Front Sheet
Data Set
Related
My Access database generates an Excel worksheet that contains lines of detail and subtotals. My users also want a line at the bottom with the grand totals. I wrote a formula using the SUMIF function to leave out the lines that are already subtotals, but then if the user filters the data the line with the SUMIF doesn't change to reflect that. The I tried SUMPRODUCT but I can't get that to work, either. I've been going crazy Googling this everywhere, but not luck....
I want the cell circled in RED to reflect whatever the user may filter in columns B or C
So I tried this, but it ignores the filters
=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(INDEX(H2:H721,1,1),ROW(H2:H721)-ROW(INDEX(H2:H721,1,1)),0))=1),--(D2:D721="SubTotal"),H2:H721)
Any ideas?
Thanks for any help!
I have an excel sheet that I am working on that lists all the incidents reported in the office. There are multiple sheets, the original data sheet and others that extract that data.
I have a formula that currently counts how many incidents were logged as "Advertising" and "Call" for example. But I need this sheet to produce a monthly report, and I can do that by using the filter dates in the original sheet. However, when I filter the original sheet, the other sheet does not reflect the change (presumably the COUNTIFS function ignores unfiltered(hidden) records and counts them anyway.
Here's my current forumala;
=COUNTIFS(GES_OOH_Incidents!C2:C2004,"Call",GES_OOH_Incidents!D2:D2004,"Advertising")
Having looked around the web for a while, the only options I could really find was to create another column to return a value but I don't really want to do that.
Any suggestions/guidance/examples would be much appreciated.
Thanks
This could work:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(GES_OOH_Incidents!C1,ROW(GES_OOH_Incidents!C:C)-ROW(GES_OOH_Incidents!C1),0)),(GES_OOH_Incidents!C:C="Call")*(GES_OOH_Incidents!D:D="Advertising"))
It's a slow formula applied on whole columns though.
Got information from here
I'm working on a personal budget spreadsheet, and I have a tab that calculates what I've spent so far in certain categories and compares that total to what I have budgeted for. I have one column showing how much I've spent and the one next to it shows how much I have left to spend. What I want to do is highlight both the total and the amount left if the column showing the difference is negative. I want to do this for the whole 2 columns. Here is a link to my sheet:
https://docs.google.com/spreadsheets/d/1AXaxVpVpblxwnS7VBhz4yhz1SNXRGCB6Zrb3OIKiaKk/edit?usp=sharing
I think my main challenge is highlighting both cells dependent on only one of them. I've tried some custom formulas but they don't seem to work. I know there has to be a way to do this. Any ideas?
You just need to fix the custom formula with a $ and apply it to G6:H26 so that when it is applied to column G it still checks column H:-
=$H6<0
Hope that helps
I am a warehouse lead that is trying to set up a better system for keeping track of the tractor trailers I have coming in and out of the facility every day.
The way I have this spreadsheet set up currently is Column A is the Tractor Trailer numbers.
Then columns B:D are the different location they come from.
I have countif statements at the bottom of all the B:D columns to count for the value X.
I have a hidden column in F that has the following countif statement: =COUNTIF(B3:D3,"X")
and then in column E I have the following if statement:
=IF(F3=1,"","X").
Is there any way I could use VBA to make a form control automatically get an X value put into rows B:D based on matching the information in Column A with the correct facilities the tractor trailers are coming from?
You don't need the VBA accomplish this. Excel worksheet functions are made for this. If you could post a screen shot I'll try and help you out.
The two biggest problems I see is that you are calculating a lot of blank cells. Also try and avoid overlapping formulas.
You would make your life a whole hell of a lot easier if you'd watch 4 or 5 videos on Excel a week. ExcelIsFun is a great free resource. His video are 5mins to about 20 minutes. In a month your co-workers will be asking you for help.
I hope everyone is having a great day. I have an excel file where the employees ID number is in column A. Then I have 4 other columns that tell me if an employee filled out data for Degree, Work Experience, Experience Level and Languages known. The employee may appear more than once therefore creating several lines for the same employee.
I need to know of a formula that will detect how many of the lines the employee has filled in. The trick here is for example if an employee has already filled in the four columns in any one of the rows to just appear as complete.
I tied using an IF formula but its not working for me.
There is no need for VBA. As I suggested in my comments above, add a helper column (Let's say in B) and put the formula mentioned below in cell B2 and pull it down.
=IF(COUNTA(C2:F2)=4,"Complete","")
Output
Try the UsedRange property.
E.g.,
ActiveSheet.UsedRange.Columns.Count