I've tried to use the search function but I can only find VBA related entries. I am looking for something without VBA. Maybe a simple formula?
OK I have a sheet with more than 8000 entries from Column A to L
In each column there's an entry like name, date, region etc.
Then I have other sheets with Region, let say Region 1, Region 2 etc.
I want to copy the entries from the main sheet belonging to Region 1 to the Sheet Region 1, the entries from Region 2 to Sheet Region 2.
So for testing I created the following Index/Match formula
=index(Sheet1!A:L, MATCH(Admin!$E$1,Sheet1!F:F,0))
Sheet1 A:L = Area to search for
Admin E1 = Value to look for
Sheet1 F:F = Where to find the value to look for in main sheet
But when I pull this formula down into the next row, it gives me the exact same entry again (like duplication) and it does not continue looking for the next item in the sheet.
What am I overseeing here? Am I using the right formula?
Thanks for your help in advance!
Yes, you could use INDEX/MATCH or VLOOKUP formulas. A simpler way to do it would be to use the FILTER function. Let's pretend the table with yellow headers is your main sheet. The table with blue headers is the sheet "Region 1".
Formula :
=FILTER($A$1:$L$11,$G$1:$G$11=1)
A1:A11 is the main table, G1:G11 the cells containing the region values. We keep the records when region=1. So in each sheet "region", you'll have a FILTER formula in A2 (assuming you keep line 1 for the headers).
Related
I have a large Excel data file, with data from two different sheets. I want to be able to match the partner_identifier values from SO Sheet 2 to the values in BB Sheet 1. For the rows in BB Sheet 1 that do match, I want to bring the entire row into a new sheet.
I need help coming up with a formula for this. I've tried VLOOKUP and IF variations, but I think I need a more complex formula. I can't do an =IF('SO Sheet 2'!D3='BB Sheet 1'!D3) because the matching values could be in different rows.
Right now, I have (and I know this is off because it returned "No" for every row, even the ones with a matching value) :
=IF(D3='SO Sheet 2'!D3:D16,'BB Sheet 1'!D3,"No")
Any insight would be greatly appreciated!
If you are using latest version of excel (Excel for Microsoft 365) - you can use XLOOKUP or FILTER formula.
Example:
= FILTER('SO Sheet 2'!A3:D16, 'SO Sheet 2'!D3:D16=D3)
Check here for details about these formulas: XLOOKUP, FILTER
You can achieve the result in 2 steps. in Sheet "BB sheet 1", you need to add a column E with XLOOKUP formula to find the matching identifier in "SO sheet 2"
=XLOOKUP(D2,'SO Sheet 2'!$A$2:$A$14,'SO Sheet 2'!$A$2:$A$14,"No")
The above will list all the matching identifier and put "No" wherever if couldn't match the identifier.
Then all you got to do is , in a new sheet, enter the formula in cell A1
=FILTER('BB sheet 1'!A:D,'BB sheet 1'!E:E<>"No")
I am trying to copy data from one sheet to another using index and match as i want specific data of intersecting rows and column.
i have attached the sheet where sheet 1 is source sheet and sheet 2 is destination. i want in cell value(C7) of sheet 1 and Cell value(B2) of sheet 2 same.I am using index match function but its returning department value.
=INDEX(Sheet1!A3:H15,MATCH(Sheet1!A7,Sheet1!A3:A15,0),MATCH(Sheet1!C3,Sheet1!C3:H3,0))
https://docs.google.com/spreadsheets/d/1YuIbG1tDQ9tp1k5OrZ8slP1PUCjG4vsRsAVLZbt8Wyw/edit?usp=sharing
Your second match range is less than the table width. Change C3:H3 to A3:H3 and you may get the result you want.
I find it helpful when doing multiple MATCH functions to break them out into a scratch area on the spread sheet and examine them separately. Then combine the correct formulae into the single cell formula.
I have an ESTIMATE sheet which has several headings as Heading1, Heading2 and so on (see image). There is total under each heading indicated by flag “tot”. I wish to pull out the headings from the sheet and indicate the corresponding total under the heading on a different sheet named ABSTRACT sheet.
I tried INDEX MATCH formula to pull out the value corresponding to flag “tot”, but it is returning only the first instance.
The snapshot of ESTIMATE sheet and ABSTRACT sheet is as shown.
Could anyone help?
ESTIMATE SHEET
http://s000.tinyupload.com/?file_id=63829334703767014830
ABSTRACT SHEET
http://s000.tinyupload.com/?file_id=68637823078246367804
To get the list, put this in C4 and copy down:
=INDEX(ESTIMATE!D:D,AGGREGATE(15,6,ROW(ESTIMATE!$C$2:INDEX(ESTIMATE!C:C,MATCH("zzz",ESTIMATE!C:C)))/(ESTIMATE!$C$2:INDEX(ESTIMATE!C:C,MATCH("zzz",ESTIMATE!C:C))="h"),ROW(1:1)))
Then to get the total, use this in D4 and copy down:
=INDEX(ESTIMATE!H:H,MATCH("tot",INDEX(ESTIMATE!B:B,MATCH(C4,ESTIMATE!D:D,0)):ESTIMATE!B$1040000,0)+MATCH(C4,ESTIMATE!D:D,0)-1)
It finds the first instance of tot after finding the correct Heading. Then returns the value from column H of that row.
Trying to write a formula for Excel, Using 2 worksheets. to classify the invoices
Worksheet 1 has Group Name and Group ID
Worksheet 2 has Group Name, invoice amount,invoice number
Trying to get the Group ID to worksheet 2, keeping in mind a ID can be use multiple times
Using formula below but the IDs I'm getting back aren't matching
=LOOKUP(F2,GROUP!C:C,ID!B:B)
Any help would be appreciated
Assuming GroupName is column 1 of Worksheet2 and that GroupName and ID are in columns A and B, respectively in Worksheet1
Place this formula in B1 of Worksheet2:
=vlookup(A1,Worksheet1!A:B,2,0)
Update all cell references and placements as they match your actual sheet data.
With vlookup you have to be sure that your data is first sorted, otherwise the algorithm tends to fail.
A better alternative, in my experience, is to do something like the following. I am assuming that Worksheet 1 has Group Name in Column A and Group ID in column B, and that Worksheet 2 has Group Name in column A. This formula would go in worksheet 2, in a blank column starting in row 2:
=index(Worksheet1!B:B, match(A2, Worksheet1!A:A, 0))
If you fill that equation all the way down, then it will perform the equivalent to a vlookup but without the need to sort your data first.
In Worksheet2:
=Vlookup(F2,Worksheet1!B:C,2,False)
But it would be better to size the table exactly and not refer to the whole column, like:
=Vlookup(F2,Worksheet1!B1:C200,2,False)
I have a list of items on Sheet 1 with the names of each item in column A and then further information in the subsequent 5 columns.
On Sheet 2, in each of the cells of column A, I have set it so that I can pick any item from a dropdown list using data validation. I want the subsequent cells in the row to automatically assume the value of the respective cells in Sheet 1.
So if in Sheet 2, Cell A1 I select Item 3 (which is in Cell A3 on Sheet one), I want Cell B1 on Sheet 2 to have the same value as Cell B3 on Sheet 1.
I could get the result I wanted by using =IF($A3='Sheet1'!A3,'Sheet1'!B3,) and then adding each possible item but that seems really long winded and would require adding to the formula every time I added an item.
Any idea if there is a way of doing this? Sorry if my explanation is a bit confusing. My excel knowledge is not great!!
Thanks in advance
Use the Vlookup function
Next to your data validation cell, enter (assuming the first sheet called Sheet1):
=Vlookup(a1,Sheet1!a:f,2,0)
This will return the data that match for the 2nd column. For the 3rd use:
=Vlookup(a1,Sheet1!a:f,3,0)
And so on..