To preface: I don't know if this is even the right question to ask, but I basically need 3 columns to match another 3 columns in Excel.
I have some BBS data that was pre-selected by the professor for the class. Now, they have challenged us to make a map out of the data he's given us; and nicely enough, BBS collects route location data (longitude/latitude). Unfortunately, the given data by the prof does not have long/lat data and it's up to me to figure out which route is which.
The raw BBS data contains the long/lat data, which I would need to extract and put into a .csv file so I can work with it on GIS.
Image of Dataset I'm working with
So, I need the columns A, B, and C to match columns in L, M, and N. Then, I would just extract the long/lat data manually. There's 328 long/lat data points I would copy and paste.
i think, you need to map "A to B" column cell against Column "L to H".
so best way to this, use vlookup, if it's related to multiple critera then create key of both cell and according use vlookup.
for key see below
Related
enter image description here
In the above problem, I am trying to create a dashboard of Brands Category wise.
The formula i am trying is. THis is in google sheets.
=INDEX($A$1:$F6,ArrayFormula(MATCH(A$12&B12,$A$1:$A6&$B$1:$B6,0)),Match(to_text(C$11),$A$2:$F$2,0))
THis returns only 1 value . But I would like to get a sum of BrandA, Catgory1 both in Nos and Pcs. How do I go about doing it? Somehow, not able to work with SUMIF. what is best suited?
Actually trying to create a dashboard for Month wise Sales/Purchase data like the link below. Any better way of doing in?
https://docs.google.com/spreadsheets/d/1047uWOrOqkW3L_1hoKh-MaY-O0_CZC0WiqmV8HZqk6o/edit?usp=sharing
Raj, if I understand your question, the following formula might provide the result you want.
=QUERY(Data!A1:F,"select A,B,sum(D),sum(E),sum(F)
where A<>'' group by A,B order by A,B
label sum(D) 'Apr',sum(E) 'May',sum(F) 'June' ",1)
This queries your data, groups it (and sorts) by brand and category (ignoring the Unit type) and sums the values. It also modifies the header text for the three summed columns.
Although I have some experience in VBA I still consider myself a novice. Just something to keep in mind.
I have a monthly report of a workbook with three worksheets that I am writing a macro for to combine and restructure the file for the output. My issue is that I have data in one column that contains information that I must extract some text, change the case and write back to the same cell. The text is, generally, a company name which will not start in the same location from company to company. Since VBA does not use wildcards (something I am accustomed to) I am finding it difficult to formulate a means to attain my task. I thought, once I located the 'name' I could reference a table and extract the modified name I need and rewrite to the cell. Here is an example of some input:
Col A Col B Col C
ASTRO #256 ASTRO Astro
DEBIT PURCH VISA CHEVRON 02 CHEVRON Chevron
SMART FOODSERVICE SMART FOOD Smart Foodservice
The value in column B is what I need to find in Column A and then take the value from Column C moved to Column A
I know I can do countless IF ELSE nests but I would rather have a separate table of col B and C in which to add new accounts as they arise. But that would require the code to be generic enough so the only updates are to the table and not the code. I understand I may be forced to do both but I suspect there is a more efficient way to do this.
Any thoughts? Thanks, Jeff
I have created a questionnaire that consists of around 100 questions. Participants are asked to fill them in online, where the items are shuffled each time. These items are separated into 6 domains where, for the sake of easier understanding, let's just call them Domain 1 - 6.
I have them typed in one specific table called "Correspondence", with format like below:
(An example)
Question No.|Domain
1 |Domain A
2 |Domain C
3 |Domain A
4 |Domain B
5 |Domain A
6 |Domain C
I used Google Form to generate a spreadsheet of RAW data of respondents, where it will help me mark the RAW Scores, for each item on a separate column:
(An example)
Submission ID|Question 1|Question 2|Question 3|Question 4|Question
5|Question 6
Participant 1 | 2 | 3 | 5 | 1 | 2 | 4 |
Participant 2 | 5 | 4 | 5 | 3 | 5 | 1 |
Participant 3 | 1 | 1 | 1 | 2 | 2 | 2 |
The next thing I need to do is generate another table that sums up the Domain totals for each participant. So from the example above, I need to sum 1,3,5 as Domain A, 4 as Domain B and 2 & 6 as Domain C:
(An example)
Participant 1
|Domain A|Domain B|Domain C|
Total | 9 | 1 | 7 |
The hardest thing is to find a proper method to kick start this process. Can anyone point me in the right direction? Either formulas or VBAs would be fine too. Thanks!
This can be done if you are able to create a helper row.
First, I created a table to link the question to domain. That is named in my example as "Correspondence". This table is somewhat the answer key. From your description of the problem, you need a table like this to establish which question is associated with the domain/category/point system you want to use.
I then created a helper row for the survey results shown on row 9. This has =INDEX($B$3:$C$8,MATCH(B$10,$B$3:$B$8,0),2) in cell B9 as the code to reference the question to the domain. This is immediately above the questions in the example, but you can put it on a separate sheet if needed.
Then you can just sum them up.
=SUMPRODUCT(SUMIFS(INDIRECT(MATCH($E3,$A:$A,0)&":"&MATCH($E3,$A:$A,0)),$9:$9,F$2))
This formula uses MATCH, which returns an integer, inside INDIRECT to be used as a dynamic row reference. This will fail if the participant names are not unique. The SUMIFS inside the SUMPRODUCT allows the row to be treated like an array without using an array formula. So you can recreate the example I have and copy/paste or drag and paste the formulas as you wish.
A different approach may be that you want to sum up the points to the questions first and then do the conversion from question to domain. That way you don't ever have to manipulate the raw data, just the reports. That may be the better approach for you, actually.
Edit: Added information about the formulas and the example.
I am unsure Excel would be able to do this automatically. I hope it can but maybe not.
I am trying to work with another member of staff in a different building. I have created a table trying to identify where the flow of some of the work is coming from. I am looking to try and count the amount of instances of text within a column. The problem is that the text can be pretty dynamic. As an example:
Consultant
a
a
b
a
b
a
b
z
c
c
c
Is there a way I can get excel to count the instances of text within the column, then create a table with the totals of the counts in it with labels.
I looked at pivot tables and that didn't seem to want to play ball.
The simplest way to do this is using COUINTIF
=COUNTIF(A:A,"a")
Which will simply tell you how many times "a" appears in the Column A.
You could easily duplicate this for every letter of the alphabet. Then use a summary table to display the results.
I am looking for a way to show additional information (columns) when doing subtotals beyond the columns that you are using On Change and are doing a function to (sum, min etc).
A simple example, I have the following data, which has 5 columns of information:
Zip Code Media Sunday Zip Code Circulation
3082 Bluebell 3,456,284 551
4418 SuperCoups 632,161 1,437
3221 AJ Direct 6,777,636 1,015
3240 AJ Direct 6,777,636 554
3768 AJ Direct 6,777,636 712
3774 AJ Direct 6,777,636 824
4219 Target Marketing 7,256,964 655
4418 Target Marketing 7,256,964 703
4434 Target Marketing 7,256,964 506
Normally we would want to use the subtotal feature to sum up the zip code circulation for each Media program. The problem, when we do this, the sub total view only shows the media name, and the summed up zip code circulation. On this summary view, I would also like to show the fields that also do not change, such as the Sunday circulation. Of course we can click on the + field to expand to show the details, but I'm looking for way to show additional columns of data that are not changing on the summary view.
Any idea how to do this?
Can't you just change that sum type for that column to MAX or something like that? If the data for the every row is the same (for your subtotal/summary), then using an aggregate type like that might do what you're looking for.
UPDATE: It looks like there's no front-end way to aggregate two different ways at the same time (MAX on C, SUM on D), so here's what you do:
Create the subtotals as SUM on C and D when B changes
Highlight column C
Do a Find-Replace and replace "SUBTOTAL(9," with "SUBTOTAL(4,"
This will switch the SUM aggregates in that column to be MAX instead, which is what you're looking for. I've asked someone who ought to be an Excel MVP, and he said there's no way to do this without modifying the formula afterwards.
Hope this helps!
Have you tried pivot tables?
You can add columns that contain additional 'formulas' too, using Calculated Fields or Calculated Items.
Bill
The easiest way to achieve this is to concatenate all of the required info into a single cell and use that as your "For each change in" column.
So if Zip Code was in column A, Media in column B and Sunday in column C then you could insert a new column as column A which would push the original three columns over (to B, C and D respectively). If you use this formula in A2:
=B2&" "&C2&" "&D2
and then autofill downwards you should now be able to get the desired info when using subtotals. It doesn't look very good but it's quick and easy
(The real problem is that your data is not normalised)