Find values in list and increment country count - excel

I have a list of email addresses and countries on one tab, eg below.
| Email | Country |
| ----- | ------- |
| user#domain.com | United States |
| anotheruser#domain.com | United Kingdom |
| yetanotheruser#domain.com | United States |
| user3#domain.com | France |
I want to paste a list of email addresses in another tab to be compared to the list above and where the email address from the second tab is found in the first table, have a count on countries on another tab, for example.
| Country | Count |
| ------- | ----- |
| United States | 2 |
| United Kingdom | 1 |
| France | 1 |
I hope this makes sense. How would you go about it? Thanks!

I assume that the first table is on sheet1 and you want to show the 2nd table in sheet2.
For instance, if we want to find the frequency of "United States" in tab 2 which is sheet2, =COUNTIF(sheet1!B1:B10,"United States")

Related

Insert column in another table for two already imported table in Spotfire

My question is, I’m sure, quite easy.
I have two table, including for each a column named ID.
The fist one is having all ID.
The second one is having only few.
I want to work on the missing ID.
Thus, I want to add a flag in my first table if this ID is present in the second table, or not.
I’m using Spotfire 11.4. In a previous version, it was easy to « add column » using a table from the analysis. Now I can’t find it, I have to import again the same table to make the merge.
Do you have any tips ?
Table I
| ID | Country |
| -- | ------- |
| A1 | France |
| A2 | Germany |
| A3 | U.K. |
| A7 | U.S.A. |
Table II
| ID |
| -- |
| A2 |
| A7 |
Expected Table
| ID | Country | flag |
| -- | ------- | ---- |
| A1 | France | 0 |
| A2 | Germany | 1 |
| A3 | U.K. | 0 |
| A7 | U.S.A. | 1 |
Ok, the option is hidden in the "Other" option, when inserting column (or rows) in the data canva.

Comparing Power BI/Excel Reports

I'm working on a project where I receive a list in excel of employee names, dates and ID's. I need to compare this list to a Power BI report that I've made to bring back any ID's that are locked.
For example:
I receive
| Employee Name | Date | ID |
| ------------- | --------- | -- |
| John Doe | 4/22/21 | 1 |
| Jane Doe | 4/23/21 | 2 |
The Power BI Report looks like this:
| Employee Name | Date | ID | LOCK? |
| ------------- | -------------- | -- | -------- |
| John Doe | 4/22/21 | 1 | LOCK |
| Jane Doe | 4/23/21 | 2 | UNLOCKED |
Is there a way to compare a my list in excel with my a Power BI on a large scale? I've tried Power Query in Excel, but the data is too large.
Ended up using a pbiviz file (Filter By List)

Sum all values from field next to specific categories (Dropdown) in Excel

I am doing an excel sheet for my finances. In an Excel document, I have these separate sheets:
2021 (Overview of all earnings and expenses)
January
...
December
Settings (Dropdown-menu for categories)
In all sheets from January to December have my expenses. The next is an example for January:
| Total | 74,97 |
| -------- | --- |
| Item | Date | Paid with | Categorie | Amount |
| -------- | ---------- | --------- | ------------ | ------ |
| Book | 21.01.2021 | PayPal | Education [v]| 14,99 |
| Book | 23.01.2021 | CreditCard| Education [v]| 9,99 |
| T-Shirt | 25.01.2021 | DebitCard | Fashion [v]| 49,99 |
and this an example for Settings-sheet:
| x |
| --- |
| Education |
| Fashion |
| TravelExpenses |
| Groceries |
| Taxes |
etc...
From these sheets, I'm using for the Dropdown menu for each entry in the specific month:
| x |
| ------------ |
| Education [v]|
| Fashion [v]|
| Taxes [v]|
Overview (2021) sheet looks like:
| Categorie | Januar | Februar | ... | December |
| -------- | --------- | ---------- | --------- | ----------- |
| Fashion | 49,99 | | | |
| Education | 24,98 | | | |
So my question is, how to pass the value from each months next field near specific category.
Can I sum all values from each month? For example:
=SUM(Januar!$A$2)
But how to sum for each categorie seperatly?
I guess add extra table in each month sheet, and then pass the value to the overview sheet. But how can I search for values from each category and sum all values from near lying fields?
Any ideas?
Thanks!
Not sure if I understand your question correct, but following the logic in the description I think this is what you want:
=SUMIF(INDIRECT("'"&B$1&"'!D1:D5"),$A2&"*",INDIRECT("'"&B$1&"'!E1:E5"))
It's a SUMIF to the sheet with the name of the month in row 1 of the overview sheet that sums all values from column E in that sheet where the value in column D starts with the value in column A in your overview sheet.

Cross-referencing values from a reference table with fuzzy inputs

I've got a Microsoft Access database with several tables. I've thrown 2 of those into an Excel file to simplify my work, but either an Access or Excel solution can be used for this. Below are examples of the data that needs to be manipulated, but in those records there's a lot of other columns and information.
I've got Table 1 (Input Table):
| Bank | Reference |
|-----------------|-----------|
| Chase Bank LLC | |
| JPMorgan Chase | |
| Chase | |
| Bank of America | |
| Bank of America | |
| Wells Fargo | |
The Reference column is empty. I want to fill it based on the reference table, which contains the IDs that would go into the Reference column.
Table 2 (Reference Table):
| Bank | ID |
|-----------------|-----------|
| Chase Bank | 1 |
| Bank of America | 2 |
| Wells Fargo | 3 |
So the solution would fill the "Reference" column like this:
| Bank | Reference |
|-----------------|-----------|
| Chase Bank LLC | 1 |
| JPMorgan Chase | 1 |
| Chase | 1 |
| Bank of America | 2 |
| Bank of America | 2 |
| Wells Fargo | 3 |
Since this is taken from a database's table, these aren't really ordered records. The purpose of this is to create a relationship in an already-existing database that didn't have those relationships set up.
a join between the 2 text fields, in an Update query, will provide a write of the ID for those records that exactly match.
there is no technology/option for the non matching; you can only apply some creative designs... for instance the chase bank does match for the first 10 characters... so for the non matched you could set up a temp table with a new field that is Left(fieldname,10)...join on this new field to get the ID into the temp table - - and then do a 2nd Update query to move the ID again finally using the full name

Search, Match & Return location using Excel?

I am looking for an excel forumla that will search the text in a cell and return the location specified in an additional sheet if a match is found.
I have a sheet with the following columns
| item | location | numbers |
|--------|------------|---------|
| apple | washington | 1234 |
| pear | wisconsin | 567 |
| orange | california | 890 |
And another sheet with the following columns:
| item_name | location |
|---------------------|----------|
| super juicy pears | |
| fresh golden apples | |
| apples from wa | |
What I want to do is search the text and display the location. Assume each fruit only has one state.
Note that I looked around on here and only found an unanswered question found here:
Excel Match & Return Values
In Google sheets try:
=ARRAY_CONSTRAIN(FILTER(Sheet1!$B$2:$B$4,REGEXMATCH(A2,Sheet1!$A$2:$A$4)),1,1)
Sheet1!$B$2:$B$4 is location
Sheet1!$A$2:$A$4 is item
Edit
To make search case insensitive:
=ARRAY_CONSTRAIN(FILTER(Sheet1!$B$2:$B$4,REGEXMATCH(A2,"(?i)"&Sheet1!$A$2:$A$4)),1,1)

Resources