How to cross reference two fields? - excel

Hi I want to cross reference two fields, by date and by break period.
Base Sheet
Report Sheet
So far I have tried doing a match function inside the vlookup as follows:
=VLOOKUP(A4,'[metric example.xlsx]Sheet1'!$B:$C,MATCH(C1,'[metric example.xlsx]Sheet1'!$A:$A,0),0)
It only will work for Team 1, but I cannot get it working for Team 2 and Team 3
Any help is appreciated,
Thank you.

Try this formula =OFFSET(INDIRECT("'[metric example.xlsx]Sheet1'!A"&MATCH($C$1,'[metric example.xlsx]Sheet1'!$A:$A,0),TRUE),ROW()-4,COLUMN())

Related

SharePoint Equivalent formulas to: Index and Match

I am transferring an Excel Report to a List in SharePoint. In Excel I have the following formula: =INDEX(A1:L1,MATCH(TRUE,INDEX(A3:L3<>0,),0))
This formula is necessary for us to identify when is the Project Managers will have their projects with "First month with expense".
If you can help me it would be wonderful.
Thanks!
enter image description here
Per my knowledge, calculating in the range of multiple columns is not available in the SharePoint.
As a workaround, you could filter items with value in a column.
Good morning everyone,
I was able to find the solution :)
=IF([JUN FY-ACTS]>0,"1",IF([JUL FY-FCST]>0,"2",IF([AUG FY-FCST]>0,"3",IF([SEP FY-FCST]>0,"4",IF([OCT FY-FCST]>0,"5",IF([NOV FY-FCST]>0,"6",IF([DEC FY-FCST]>0,"7",IF([JAN FY-FCST]>0,"8",IF([FEB FY-FCST]>0,"9",IF([MAR FY-FCST]>0,"10",IF([APR FY-FCST]>0,"11",IF([MAY FY-FCST]>0,"12","N/A"))))))))))))

Need Help To Get Matched Values From Table 1 to Table 2

Please Help me to Get Matched Values From Table 1 to Table 2 based on formula's
The table to needs to be filled by ref values based on the associate marked attendance.
I have tried V lookup() and Match() Nothing worked out.
Sorry ! Guys ! Self Found an Answer Just Now. I used it earlier but forgot it.
Just Now Remembered again.
The Value can be Get Through Countif() Function. and It it's HD Then Countif()*.5
If anyone know's other methods please post here so that will get some
idea's in easier way

Getting the header of the two matching criterias, for multiple tables

Hoping you can help me out.
I have a total of three tables here. I've been trying to figure out a formula that will give me the header (the names) of the two criteria specified in H1 and H2. I was able to get the result I want, but for the first table only (Hailey).
The problem is to find out who among the three teachers handled the "subject" within the specified month as well.
Also, I couldn't figure out how to get all the results if ever there are two names that match the criteria. Thank you in advance for your help.
as Jeeped said above this is essentially bad database/table methodology but it is not hard to fix, what you need to do is create three columns one for the name, subject and month.
Then what you can do is just run a simple SQL/Google Query to find out who is doing what.
I've created a template based of your screenshot above but with three columns, have a play around and if you redesign your spreadsheet just let us know and we can help you to design a query for your issue.
use the drop downs to get your desired query, if you select name & month you get that range, if you select a month you get all names for that month.
https://docs.google.com/spreadsheets/d/1yERKtQocnVqopqh6CCn6Rdj143bYyr_IjSDnzCLSm_8/edit?usp=sharing

Combining IF and RIGHT functions in excel

I'm a super novice, trying to navigate data analysis in Excel, so be kind! I need to combine the IF and RIGHT functions.
So it's a sales dataset with different products, I need to use the IF function to filter the products so it only applies to "Bikes". Then I need the last 2 characters of the Product Name column which represents the size of the bike.
I've got the RIGHT function to work by itself but I can't combine it with the IF function so it only applies to the bike products.
=RIGHT(L2,2)
If this makes sense to anyone please help!
=IF(LEFT(A1, 5) = "Bikes", RIGHT(A1, 2), "")
Then just copy this down the range of your data.
Here's how you do it when working within a table:
=IF([Product Category]="Bikes",RIGHT([Product],2))
Try this. It worked for me.
=IF([#[Product Category]]="Bikes", RIGHT([#Product],2),"")

Excel Lookup with multiple queries

I have a question that I a may not be thinking correctly about. But I have an a long excel file that I pull from somewhere else with the following columns:
Project_Name1, Employee_Name1, Date_Worked1, Hours_Worked1
In another sheet I have these columns
Project_Name2, Employee_Name2, Begin_Date2, End_Date2, Hours_Worked2
This second sheet is filled with data, and works just fine.
However, it turns out that I have some employee names that I do not know that are also working on the same project. I need to figure out the names of the employees and then sum the number of hours they worked for a given period.
So I need a lookup with three criteria:
Project_Name1 = Project_Name2
Employee_Name1 <> {Array of Employee_Name2}
Begin_Date2 <= Date_Worked1 > End_Date2
Returning Employee name.
Once I have the employee name, I can do a sumifs=() and get the total hours they worked no problem.
I have tried a number of combinations of Index Match functions, using ctrl-shift-enter... and have not been able to figure out it. Any help would be greatly appreciated.
What you're talking about doing is extremely complicated and a little bit past what Excel was designed to do by default. However, there are a few workarounds that you can use to attempt to get the information that you're looking for.
It's possible to do multiple-criteria VLOOKUPs and SUMIFs by concatenating fields to make a multi-part identifier (Ex: Insert a new column and have a forumla in it like =A1&B1)
Open a new workbook and use Microsoft Query (I'm not sure if you can select from more than one sheet, but if you can select from multiple sheets like tables you should be able to write a semi-complex query to pull the dataset you want.
http://office.microsoft.com/en-us/excel-help/use-microsoft-query-to-retrieve-external-data-HA010099664.aspx
Use the embedded macro feature and use visual basic script to write out your business logic. (Hotkey is ALT+F11)
One way to do this would be to first create an additional column to the right of entries on the sheet you're trying to pull employee_name from: =ROW()
You could then use an array formula like you were trying to implement to pull the corresponding 'match' row:
{=SUM((project_name1=projectname2)*(employeename1<>employeename2)*(begindate<=date_worked1)*(date_worked1>end_date2)*(match_column))}
You could then use this returned match_column entry within the index as you described to retrieve the appropriate entries.

Resources