To clarify, I will attack the code myself, however, it's the order and techniques to do this I need some guidance with.
I have a table with 4 columns. The table has 40000 rows. The columns are Date, Name, location, company.
I want to see how many times someone in the name column, appears in the database. I then want to apply a date filter to that. This I have managed to do if somewhat clunky.
My problem is that the unique function only returns the name, when i apply it to that column. and i need it to return the location and company so that i can sort on that too. How would you go about doing that?
I have used unique on the name column. It returns a spilled over list of about 4000 names. I then
use this code =COUNTIFS(MyName,$A2,MyDate,">="&DATE(List!$D$2,List!M$4,List!M$5),MyDate,"<="&DATE(List!$D$2,List!M$4,List!M$3)) to return the number of entries per month. A2 is the unique return column.
Any guidance would be appreciated.
Allan
Related
I've used Kahoot in the classroom and have several excel files with scores from quizzes.
Students attended quizzes by using unique IDs. In each file, scores are visible for each ID (but ordered by success on each quiz). There are also some students missing or stating wrong IDs (I'll ignore it).
Now I would like to accumulate all scores for all student IDs in one sheet and summarize them by Student ID.
How can I do that most efficiently?
Any pointer or advice is appreciated.
Thanks,
B.
Here's a high level guide to getting what you want along with a sample in this file.
Step 1 - Combine Files to Sheet with Unified Columns
Objective
The goal here is to:
Combine all of your data from other files to single sheet
Merge the data to be in a single column for each field (i.e. Column A has ID, Column B has score).
No breaks in rows.
No formulas.
To illustrate, I made this fake list based loosely on your
description.
Method
You probably can do this manually, but a macro could also be used. If you expect to do this year over year, you might look into vba to open close files in a folder. However, since that wasn't part of question, you can do copy-paste (better yet make a kid do it!). Just make sure there's only one header for each column, and all of the data records align. Probably should do copy paste value if you have any formulas.
Step 2 - Show Summation
There's a couple ways this could be done. A pivot table is probably the most sensible because you could include each quiz as a column to see the total. You could also use a pivot table to do averages by student etc.
TO make a pivot table, I would recommend going on YouTube and they will do a better job of explaining than me.
On that same file I made as an example, I included some tabs to illustrate the power of pivot tables and a couple graphs.
Hope that helps. If you have specific technical questions on this, you might consider asking separately.
I need to be able to do a summary of rows based on certain column conditions.
There's a table with the following columns:
ID# (row #)
Part
Customer
Job
QTY
Dept
Pass/Fail
Where ID# can possibly be the only unique value.
From the table the following needs to be obtained:
Need to return All jobs.
Need to return all new jobs, which should be all jobs minus any duplicates (i.e., the first entry for each unique Part-Customer-Job-QTY-Dept (i.e., where all 5-values are equal).
All Repeat jobs, which should be all ID#-Part-Customer-Job-QTY-Dept-Pass.
For example:
1-Part;Customer;Job; QTY; Dept; Fail
2-Part; Customer; Job; QTY; Dept; Pass
Where Part-Customer-Job-QTY-Dept are equal, with 1 failing and 2 passing.
1 and 2 are easy, but 3 is a little tricky.
Should I just find the ID#'s (rows) that include a fail prior to a pass.
Can it be done in a single loop?
While I'm here, #2 might be tricky as well. Is there any easy way to sum, without duplicates?
Any help will be highly appreciated!
Please let me know if any additional info is needed.
The sample data below should return:
10 for All
8 for New
2 for Repeats
Doing the sample has me thinking if just subtracting New from All will return all repeats.
I am not sure if you actually need to use VBA as the question seems can be solved by default functions.
The key problem here is to identify all the repeating records, of the unique key Part-Customer-Job-QTY-Dept. Note that you don't actually need to take care of the ID and Pass/Fail as these values do not affect your calculation.
Once you know the unique key, you can solve by the following steps:
Make a new column concatenates to produce the unique key. (F1)=A1&B1&C1&D1&E1
For each row, count the appearance of the unique key among the column.(G1)=countif(F:F,F1)
You can determine the record is duplicating when the count is larger than one, meaning there are multiple lines in the data using the same unique key.=countif(G:G,">1")
Once you have the Yes/No answer on each row, you simply count the Yes to yield the repeating count, thus the new jobs according to your definition.
This can also be implemented in VBA by the same logic.
So I'm working on automating my budgeting spreadsheets with a little automation. For each expense there is a category and then a description of the expense so for example:
What I want to do is on the far right for the total is tally up everything for each category, but I want to populate that list on the fly, so for the category column I want it to look at all the category columns and list out unique categories, so even though I might have 'Grocery' listed twice during the week, it only shows up once in the Total Section. The price column would then be the total of that category spent that week.
The issue I'm having is pulling unique values from multiple columns. The closest I've found is this:
=INDIRECT(TEXT(MIN(IF(($A$2:$C$9<>"")*(COUNTIF($E$1:E1,$A$2:$C$9)=0),ROW($2:$9)*100+COLUMN($A:$C),7^8)),"R0C00"),)&""
It works great if the columns I'm looking at are all next to each other, but the columns I'm using are split up. I can't seem to get it to work with the columns broken up.
My attempt:
=INDIRECT(TEXT(MIN(IF((($B$3:$B$35,$E$3:$E$35)<>"")*(COUNTIF($Q$2:Q2,($B$3:$B$35,$E$3:$E$35))=0),ROW($3:$35)*100+COLUMN($B:$B)+COLUMN($E:$E),7^8)),"R0C00"),)&""
All I get is 'Error in Value'
Any advice is greatly appreciated. Thanks!
I've got 2 columns - Name ID and Name.
When a user adds a new entry to the sharepoint datasheet in the form, they have a dropdown list of all names (around 20 in total).
What can I do, so that when they select the name, the Name ID field auto-populates with its corresponding details?
Is there somewhere I need to hold this data and how do I go about creating these calculated columns?
Thanks in advance
You should just be able to do something like this
=TEXT([NameIDcolumn])
# Or
=CONCATENATE("You selected:", [NameIDColumn])
However, you cant use the value from the ID column or any think like that in a calculated col since the value does not exist yet. The SharePoint dev team was most likely smoking crack when creating that datatype since a lot of good stuff that should have been there isn't.
You have the complete reference of stuff you can make with calculated columns here http://office.microsoft.com/en-us/windows-sharepoint-services-help/CH010065006.aspx
I need some help with an excel command.
I got two excel files, with about 600 products, the products are the same but with different order and different prices.
There is no actual order for the price list, the single problem is that if i mess up the order, it won't work on the web (SQL import).
How can I add the prices from second list to the first list without messing up the order?
Thanks,
Sebastian
Assuming the product names are unique or have some kind of unique identifier then you can replace the price in the “sorted” list with a vlookup function and have the real prices stored on a separate sheet which in the below example called I have called data “Data”.
=VLOOKUP(A1,Data!A1:B65536,2,FALSE)