Difficult Formula can not figure it out - excel

I have a very difficult Spreadsheet that I need to figure out a formula to get an answer. The Spreadsheet can have multiple rows (each row is a policy) In the rows there are several columns (A, B, C, D , E, F, G) Columns D, E, and F can have one of 4 answers (Right, Left, Up, or Down).
I want to create a formula that tells me how may policies (rows) have and answer of up or down in any one of the 3 Columns (D, E, or F). If it appears in multiple column I only want to count it once. Can anyone help with this formula?
I have been trying to use =SUMPRODUCT as The rows may be filtered by a column that has a name. Example: filtered on Paul (column A) to see a count of the number of policies that Paul worked on that have up or down in either of the three columns. I want to receive the total number of policies not the number of up or downs.
Thanks in advance for any help you can provide.

If we can do it in multiple steps here's one approach
define range for Up, down
enter formula =sumproduct(--RNG=D4:F5))>0 in H2 and fill down
enter formula =Countif(H2:H6,"=True") in bottom of H which denotes unique policies having up or down in cells D:F. (assuming each record is a unique policy)

Related

Formula to add values in column G only if cells in Column B contain a "X"

I am trying to create a spreadsheet that lists bank transactions. If the specific transaction is for a "school-related" cost, ie. Tuition, I have an "X" in column D. I want to create a cell that will give me the total dollars for all the items in column G that have an "X" in column D. I hope this makes sense.
Similar to #Gary's Student, a simpler version of this formula is to use SUMIFS. For the range he posted above, consider using
=SUMIFS(G:G,D:D,"X")
There are many ways. Here is an example:
=SUMPRODUCT(--(D:D="X")*(G:G))
You naturally would tailor this to match your data schema.For example, you could use column B rather than column D.

Using of INDIRECT formula in many ranges

I'm standard excel user (I know only record macro :)), but I really need your help, I'm lost. I'll try to describe what I need to do.
I'm trying to apply limited drop-downs based on previous selection. Please find the picture:
Data (columns A, B)
Dropdowns (G, H)
What I need is, that the user select some, concrete Company in column G. He will have limited drop-down in H column. So everything, what I need, is using INDIRECT formula through the Data Validation (menu - Data), but for this I need to get name to every range in column B, which will be available (for same Company), so the name of these ranges have to have exact name for each Company (a, b, c ...etc.).
The problem is that I have hundreds Companies. Do you have some idea, how can I proceed macro which allocate these names to all ranges in B column with names as per A column?
If you have any other idea how I can solve this, it will be sufficient for me too.
Thanks.
Franta
The better approach here is to use OFFSET for the Data Validation List formula.
In H2 apply Data Validation List using
=OFFSET($B$1,MATCH($G2,$A:$A,0)-1,,COUNTIFS($A:$A,$G2),1)
What this does is:
Finds the row containing the first instance of company in column A (MATCH($G2,$A:$A,0))
Counts the number of instances of company in column A (COUNTIFS($A:$A,$G2))
Creates a range offset from B1 by the Row match -1, and resizes it to the count of company
That's the range used by Validation
Note: this relies on the companies being sorted as shown in your sample data

Need to find entries in one excel column that are not in a different column

I have 4 excel columns two contain product identifying codes (columns A and D) and the other two contain the corresponding stock quantity.
I need to identify all entries that are in A not D and vice versa.
Thanks
simple, follow below steps.
1. select Column D and A. use conditional formatting, and select the option to check duplicates.
2. Filter out the cells without color coding. they are the data points which doesn't repeat.
Hope this works.
Thanks,
Ved

Combining multiple columns (Excel) into 1 with associated column of dates

Reviewed many threads on similar issues, but none addresses my particular challenge. I have a column (A) of dates (10K+), followed by a column (B) of event hosts, followed by multiple columns (C-X) of co-hosts. From these, I need to create 2 columns - 1 of dates and 1 combined list of hosts/co-hosts (each associated with their specific date). In other words, the co-host listings will be inserted into the host list (as a new row) and the appropriate associated date will be generated in the adjacent date column.
Caveats: (1) there are blank cells (in co-host columns), which need to be ignored; (2) the list will continue to expand each year (+~5K); (3) prefer a formulaic solution, if possible.
Can anyone assist? Many thanks!
For a formula way of doing this I would add the following formula into column Y
=B1
And then the following formula into Column Z:
=X1 & IF(LEN(C1)>0,", "&C1,"")
Then drag that formula across to the right for the 22 or so columns (the number between B and X). The last column should have what you are after, you could then Ctrl-X to a different part of the workbook. I have assumed you would like a column between the names. I hope that helps

Sumif based on multiple criteria and location

I'm trying to use Excel to extract figures based on multiple criteria and their location within columns.
So for example. If I wanted to do a SUMIF to receive the figures associated with the First class. The formula would retrieve the figure in a specified row,
But If I wanted to retrieve the figure associated with England. The formula would contain multiple criteria to look for the First class then look for the country England and retrieve the figure on its row in a specified column.
These columns will grow and shrink each month. Meaning I need it to be somewhat dynamic.
I've tried to do this using SUMIF and SUMIFS with no luck.
=SUMIFS(D2:D10,A2:A10,"First",B2:B10,"England")
The challenge you have is that in columns A, B and C, the values are not repeated downwards into the now blank cells. So values do not appear next to each other in the same row.
Assuming that the example you gave is quite simple, and you could also have multiple International Products for a given Class and Country, I would go for the following solution:
Reserve two columns (E and F) for intermediate calculations. If they are currently used, move those used columns to the right, making room for an empty E and F column. You could of course also choose two other columns for this purpose. But I will assume they are E and F.
Then in E2 put this formula and copy it further down the E column as far as needed.
=IF(A2<>"", A2, OFFSET(E2,-1,0))
In F2 put this formula and copy it down as well:
=IF(B2<>"", B2, IF(A2<>"", "", OFFSET(F2,-1,0)))
This should give the following display (the header titles in E1 and F1 are cosmetic only):
Now you can do formulas on those columns in combination with the C column. For instance:
=SUMIFS(D2:D10, E2:E10,"First", F2:F10,"England", C2:C10,"")
And this would output 2. Note that if you really only want to match one row, you should specify a condition for each column (E, F and C).
The intermediate formulas in the E and F columns are quite resistant to deletion of rows, due to the use of OFFSET. If you insert rows, you should of course make sure the formulas in E and F are copied into it.
If you will ever use more than 3 columns for the source data, you'll need to also add more intermediate columns with similar formulas. Also your SUMIFS would need extra conditions then.
You could use the following SUMPRODUCT() For Class and Country:
=SUMPRODUCT(($A$2:$A$10=$F$1)*($B$3:$B$11=$G$1)*($D$3:$D$11))
Then for all three:
=SUMPRODUCT(($A$2:$A$10=$F$1)*($B$3:$B$11=$G$1)*($C$4:$C$12=H1)*($D$4:$D$12))
A picture for references.
The idea is that each column must move down one row in its reference. And the Sum column must start on the same row as the last column being referenced.

Resources