Formula not displaying all specified data - excel-formula

The following formula is displaying 4 of 5 occurrences.
=COUNTIFS(Referrals!$D$3:$D$325, "DOM", Referrals!$A$3:$A$325, ">="&'Month Source'!M6,$A$3:$A$325,"<="&'Month Source'!M7). In other locations it is not displaying the occurrence. 'Month Source'!M6 is the location of the beginning of the month, 'Month Source'!M7 is the end of the month. I checked any data validation columns, & the cell location of the beginning & end of month.

The syntax is correct so, on the information publicly available there seems little more to be said, other than the problem seems to be with the data you have not provided. Possibilities include:
Text that may look like a date but is not
Extra (in particular, trailing) spaces
D0M rather than DOM

Related

Selecting a mixed item inside a cell and then summing it through column

Essentially I have a list of food items in one column and the various categories they fall into (contains meat, contains fish, is eaten cold, is eaten warm, is water) in another column. Food items can fall into various categories, and each category has its designated number, ranging from 1-15. To make things fun, lets suppose that when the designations were assigned, they were mixed (i.e., not placed in any particular order such as by ascending/ or descending number), but always following the format of #,# (with no spaces between numbers or commas). What formula can be used to 1) count all instances where there is a designated number within a column and 2)sum up these instances and output the total?
I asked a simplified version of this question earlier and got a good response.
The suggested code was:
=COUNTIF($C$3:$C$10,"*" & G3 & "*")+COUNTIF($C$3:$C$10,G3)
However, this code incorrectly counts a cell with the numbers 15,11,3 for the "1"s.
I post that answer based on your provided sample data. Now I have purified it to make it more flexible. Try this one
=SUM(--(FILTERXML("<t><s>"&TEXTJOIN("</s><s>",TRUE,SUBSTITUTE($C$3:$C$10,",","</s><s>"))&"</s></t>","//s[.=" & G3 & "]")<>""))
Details about FILTERXML() here from JvdV.

Display text different to actual value when actual value is *

That's basically it.
I have a * in some cells to represent "All" data, because I need it for some formulas later, but I want to use it in the titles so it would be nice if it could display "Total" but still maintain the * below.
As you can see from the picture, the cell should be showing "Total" (red arrow) while mantaining the vale as "*" (blue cirlce).
Tried a few tutorials but nothing seems to work, I'm not sure if it's because it's an asterisk or what.
Edit: the tutorial I mostly followed is this one, in my case instead of 1,2,3,4,etc I have * (aka the value) and I want to display "Total" instead.
Custom number formats in Excel split into four categories:
Positive values
Negative values
Zero values
Text values
* is a text value so you want the fourth category and you get this by inserting semicolons before the required format to indicate that 1, 2 and 3 don't apply so you end up with:
;;;"Total"
where A2 and A4 actually contain an asterisk.
You have cells that have contents X but you want Excel to say, "no, no. I'm going to show you Y"?
Aside from sounding like a maintenance nightmare, I am not aware of a way to do that.

How to fix a Index+Match based on input value thats also dynamic

I have a great challenge I hope you can help me with.
What I want to achieve:
In the sheetname “Overal campaign information” I have an identical setup to the other sheetnames (for example Week 1 – Email, Week 1 – CPC and so on).
I want to user to first select their week and year and based (under E1) on these to selections, you can select a type that matches that week and year input.
What have I tried?
I have written an INDEX+MATCH that works well, but that is based on a hard coded sheet name and is not dynamic.
I have also tried the INDIRECT function to find information regardless of worksheet name, but failed hard
I have tried to CONCATENATE year+week to get a key to match against point 1, but also not succeeded
Wanted result
Based on the time frame selection (week and year) the type will show available types that matches that input.
Then it will fill in the information in C1:C13 and B17:V:300
Not really clear what you means by "fill in the information in C1:C13". But formula in 'Overal campaign information'!B17 could be
=OFFSET(INDIRECT("'Week "&$F$2&" - " & $F$4&"'!$B$17"),ROW(B17)-17,COLUMN(B17)-2)
This then can be filled into 'Overal campaign information'!B17:V300.

Replacing text on a spreedSheet according to match text x Rows above it

Good day people, this is my first post here. I'm trying to understand what's the logic for this issue i want to fix:
I have a spreedsheet with the sales of clients, each one with a different name. Every Client has under its name a date and to the right the amount of money sold that day. Then after the last day registered there's the word "Total" I need to change every "Total" so that it says "Total Client A" . "Total Client B", ETC, according to which client the "total" belongs to . Example
Client 1
DATE .............Value
2016-05-01 ... $2.500
2016-05-02 ... $2.350
2016-05-03 ... $3.450
Total..............$8.300
Client 2
DATE............Value
2016-05-01.. $2.000
2016-05-02...$2.600
2016-05-03...$2.400
Total..............$7.000
etc etc. So the idea is to have in the above example instead of "Total", Total Client 1, Total Client 2, etc.
CLIENT X, can be any name. It doesn't follow a logic. The only constant is that underneath it there's the cell "DATE"
The file changes each day (adding a new Date with it's respective sale, and the reprocessed total) and i need to process the file daily. The idea is each day to have the file say "Total Client x ",(instead of just "Total") so i can use that file to another process that i have.
Thanks a lot for any help,
Using an array formula, you can add extra criteria also, to tweak.
="TOTAL FOR :" & INDEX($A$1:$A13,MAX(IF(NOT(ISNUMBER($A$1:$A13)*($A$1:$A13<>"")),ROW($B$1:$B13)))‌​,1)
This uses one of my favorite tricks given here.
Assuming your data starts in column A with the first value in A1, and, then assuming your first total was in cell, say A10 (I just need an address to show you what it would look like), you could use the following formula for your total in A10:
="Total " & LOOKUP(2, 1/($A$2:A9="Date"), $A$1:A8)
And you can then copy and paste that exact formula into any other total cell in Excel.
Basically, it says the following:
Start with the word "Total "
Look in cells A2 till the cell directly above me and find the last occurrence of the word "Date" (LOOKUP(2, 1/($A$2:A9="Date"), ...) - See the link above to explain why this works)
Lookup the values of the cells directly above them to know what to bring in (LOOKUP(... ,$A$1:A8)).
Hope that makes sense and does the trick!

Automation of Subtotal range picking

For my internship I am trying to do an analysis of travel patterns in public transport.
Due to privacy reasons I cannot share the file, but I may describe the columns.
This is how it works.
I have a spreadsheet in Excel (2007) and it is called ReizigersData. That contains 15,000 rows of checkins.
The columns are: stopname, stopID, problemStop, D, E, productname, workday, saturday, sunday.
stopID can be seen as a primary key.
As you'll understand, the stops are repeated in several rows, because many different productgroups travel from the same stop.
Using a Advanced filter I have filtered out 3 relevant productgroups, reducing it to approx 300 rows.
The other sheet in the file is called ReizigersData (bundled).
In this sheet I want to get the subtotals per stop, combining the numbers of the three productgroups, although separated by workday/saturday/sunday.
This sheet contains the following columns: stopname, stopID, workday, saturday, sunday.
I have used the following codes:
In ReizigersData (bundled) stopname:
=INDEX(ReizigersData!$A$3:$A$14326;MATCH(B3;ReizigersData!$B$3:$B$14326;0))
In ReizigersData (bundled) stopID:
=SUBTOTAL(109;'ReizigersData (2)'!G174:G205)
These codes work.
The problem though is that I entered that range by hand.
Since it is a big database, I would like the subtotal formula to automatically determine which range he should pick according to the stopID in the bundled sheet.
I have experimented a bit and came up with this formula:
=SUBTOTAL(109;(INDIRECT("'ReizigersData (2)'!G" & Match(B3;'ReizigersData (2)'!$B$3:$B$14326))):(INDIRECT("'ReizigersData (2)'!G" & Match(B3;'ReizigersData (2)'!$B$3:$B$14326))))
Unfortunately this does not work; it returns 0. In Formula evaluator, it looks that the reference in the match part is the issue, because it refers to row 2297, which is not the one it should be.
Has anyone got any idea how to reach my goal?

Resources