I have two Excel 2010 files created by ex-employee. Need File 2 to quantify when data in column M of file 1 for a particular manager has a status of "Open". The code I was using is.
COUNTIF(INDIRECT("'"&"[file1.xlsx]"&Q3&"'!M2:M1500"),"=Open")
I think I am missing the tab name after the file but when I inserted it didn't work.
Without seeing an example of your data it is hard to tell what you want exactly.
You will want to use COUNTIFS since you have multiple criteria.
I added a list of Manager Names to my new sheet and referenced the list within the COUNTIFS:
Assuming the status is in Column M of the other sheet and the Manager Name is in Column N of the other sheet and your list of Manager Names is in Column A of your new sheet, you can use this formula to count "Open" statuses by Manager:
=COUNTIFS([file1.xlsx]Sheet1!$N:$N,A1,[file1.xlsx]Sheet1!$M:$M,"Open")
Related
I have an online Excel workbook that I'm working on and I wanted to know if there is a way we could find out the exact location of where the text has duplicates.
I found a solution in the Excel downloaded macro workbook using VBA but I got to know Excel macro does not work online therefore I need to find a different solution to show the duplicates location in the online Excel workbook.
For instance, using conditional formatting I formatted it to show me it is a duplicate but I want it show the row number of where the duplicate is located. Does the Excel online offer any such feature?
you can use a formula to retrieve the duplicates row = 1. helper column
=IF(COUNTIF($A$2:A2,$A2)>=2,ROW(A2),"")
then in the 2. helper column you add this formula:
=IF([#[row of duplicate]]<>"",TEXTJOIN(",",TRUE,FILTER([row of duplicate],([Name of Contact]=[#[Name of Contact]])*([row of duplicate]<>""),""),""),"")
Output is written to the first value with duplicates.
It joins the result of the row numbers by first filtering them by the name of the contact.
You need Excel 365 for this.
=IF(COUNTIF($A$2:$A5, $A5)>1, ROW(A5), "") will return the row number as a second column
=CONCATENATE("Duplicates Exist in: ",TEXTJOIN(", ",TRUE, B2:B15)) will return those numbers back as a single cell that looks like Duplicates Exist in: 7.
Note: the above if identifies only the duplicates after the first, a slight modification would list all duplicate occurrences.
sources:
https://www.ablebits.com/office-addins-blog/2016/03/02/identify-duplicates-excel/ & https://www.exceldemy.com/excel-combine-rows-into-one-cell-2/
I got a problem with some popular Excel question, dynamic ranges and data validation drop-downs and auto-populate. Lets say I got 2 sheets, and on one sheet I got drop-downs to choose from another sheet, and that is not a problem when I define cells and range using:
=OFFSET($A$19;;;COUNTA('0528 - info'!$E$2))
..but what about when I wanna add some new cells in between,so that they can be automatically recognized in which group they belong:
As you see for instance Column B has some "groups" where you can find more different "values" like in Column C, like Power Supply has MV1 and MV2... and so on. My drop-downs on the sheet 1 are called exactly like this "groups" and I did reference them manually using given function. But is it possible to populate my drop-downs automatically when I add for instance MV3 beneath MV2 in this table? Or RN7 on 14th row? Everytime I add new values I have to extend my dropdowns (what is fine..), but problem will be when I share this table to others, they gonna forget it 90%.
I hope you get my point, any suggest will be fine!
p.s. Indirect doesnt work in a way it should - It gives me all instances from the Column but not specific ones that I need.
=INDIRECT("Table4[VarEDS]")
Well this option gave me again what I already had before - all "matches" from the Column and still not ONLY matches that are for certain group. ...
If your Data Validation source is a "Table" as shown in your image then you can take advantage of "Table Column" Range which is dynamic. That means whenever you refer that column as NAMED range and if make changes to the column (Edit, Add, Delete) it will reflect in the referred cell.
You can use this technique even for ranges not in table. You need to NAME them with offset formula and make dynamic.
You can find dynamic address of your column as shown in the image below. Select entire column WITHOUT Header
Name your column data range with appropriate name as shown in image below
Then in Data Validation Window refer this name using F3 as shown in image below.
Then you can see... Even if you edit, add or delete any row in the column the data validation will change
Editing based on your comment below: If you want text from column B and Column C appear together in the validation dropdown list. Insert column in the table and join text from column B and C and then make data validation based on that column as shown in Colum D in image below
Finally I think I understood your question.
Watch this video
Excel: Find Multiple Matches & Dependent Drop Down List
After some days of searching and trying I got what I wanted - wasnt wasy job at all. Needed to combine more functions with the help of couple of videos from Leyla (Xelplus):
https://www.youtube.com/watch?v=gu4xJWAIal8
https://www.youtube.com/watch?v=7fYlWeMQ6L8&t=5s
First step was to make unique list of my values (text in my case) on separate sheet:
=IFERROR(INDEX(t_VarGroup[Vargrouptext];MATCH(0;INDEX(COUNTIF($J$2:J2;t_VarGroup[Vargrouptext]););0));"")
Then I needed to "extract" all the values that are belonging to the certain unique values:
=#IF($I3<COLUMNS($K$2:K$2);"";INDEX(t_EDS[[VarEDS]:[VarEDS]];AGGREGATE(15;3;(t_VarGroup[[Vargrouptext]:[Vargrouptext]]=$J3)/(t_VarGroup[[Vargrouptext]:[Vargrouptext]]=$J3)*(ROW(t_VarGroup[Vargrouptext])-ROW(t_VarGroup[[#Headers];[Vargrouptext]]));COLUMNS($K$2:K$2))))
FUrthermore, I created Unique drop down list:
=OFFSET($J$3;;;COUNTIF($J$3:$J$14;"?*"))
And then dependent drop down list nearby using:
=OFFSET($K$2;MATCH($H$2;$J$3:$J$17;0);;1;COUNTIF(OFFSET($K$2;MATCH($H$2;$J$3:$J$17;0);;1;20);"?*"))
And because I made it on other sheet, I had to reference them to an appropriate sheet name where my main sheet is - with drop downs, it is actually very useful for my future work and for everyone else who has struggling with drop downs but on a bit specific way =))
credits to: #Naresh Bhople for suggestion about Youtube videos.
I have a workbook with the below tabs.
- Tracking (REV)
- Resource Data
At the beginning of the REV Spreadsheet I have Ref.# that are the same across each sheet, but I do not bring across all the columns from the Resource Data tab into the REV tab. However for the columns I do bring across, this means that if I sort data, the formula's are always going to be looking for the unique Ref ID before anything else.
What I am trying to do...
At the bottom of the REV sheet I am trying to sum the monthly columns if when looking up the reference ID on the Resource Data sheet, it runs a true/false against each row by looking at the project name and matching that to a referenced cell with the project name on the REV tab.
The workaround for the time being is to add the Project Name column into the REV spreadsheet, but then I need to go change all my vba code for the generation of these complex workbooks.
I have tried using a SUMIF in combination with INDEX MATCH.
=SUMIF(Tracking_REV[Ref.
'#],INDEX(ResourceData,MATCH('Tracking (REV)'!A4,ResourceData[Ref.
'#],0),10),Tracking_REV[Feb-19
(Actual)
Calendar])
I'm expecting to be able to sum the range as descriped above, without having to add a column into the sheet.
Resource Data Sheet
Tracking (REV) Sheet
From my understanding, the criteria for you to look up the sales are the reference number and project name. You cannot simply look up the figure using the reference number.
If that's the case you properly need to show Project Name on the REV sheet.
I am not sure how adding a column would impact your VBA. If you can specify this then I may be able to give you a better answer.
For now my suggestion would be adding the Project Name as a new column at the end of your REV report which may not have impact on your pre-written VBA code.
Alternatively replace a current column on your REV sheet which is not important with Project Name so it dose not change the size of your report which might not affect your VBA.
If not please give more details regarding your VBA code.
I have say 100 output Excel files with column A full of variable names and column B with values. I have put them into separated sheets of one file. and I would like to get an overview sheet.
The thing is that the same variable is not in the same place (same column but different rows). I need to first identify the correct row number and then get the value.
My question is with the name of the variable and the sheet name available, how can I build a code to get the value?
I've got a list or names in column A. The manager for each person is listed in column M. Each manager could have 8-15 reps.
On a separate sheet, I want to be able to have a formula that basically looks at column M to find a specific manager's name and then lists all of their reps.
Perhaps the first formula in a column finds a rep's name that reports to the manager. The following formula looks for another name that isn't the one above. The following looks for a name that isn't one of the names already found? Etc.
Seems like Pivot Table is the perfect solution.