Conditional Count With 2 Searches?

Mar 19, 2014

Table 1: in week 6, there is 1 unique client, in week 8 there are 2 unique clients,...

ClientsPMCWeek
AAAMoscowW6
AAAMoscowW8
AAAMoscowW8
BBBMoscowW8
BBBMoscowW9
CCCMoscwW9
DDDSTPW9

I want to create the following (not with pivot-table)

W6W7W8W9
Nr Clients 1023

I tried with combinations SUMPRODUCT/COUNTIF/... The problem is that you must combine with W6/W7/W8...

View 1 Replies


ADVERTISEMENT

Conditional Sum & Count: Count Request Matching The Crateria Of Date And Other Conditions

Nov 17, 2007

see my attached sheet cotaining the following questions. in a day report sheet how should i count request matching the crateria of date and other conditions. in a monthly report a heavy conditional sum calculation which make slower sheets how can i make it faster.

View 2 Replies View Related

Formula That Returns Value From The Same Row It Searches?

May 27, 2014

I need a formula that can return the value from a cell in the same row it searches. The row is unsorted and has blank cells. Seacchs row A12:X12 returns the text in C4 (data validation List) in A19 on a different sheet.

View 6 Replies View Related

Using Find For Similar Searches

Mar 6, 2014

Problem is Findstring finds cells that contain "SS1" AND "SS1 EXT". These are separate grades.

I need Findstring to only find SS1. Using xlWhole doesn't work for me, as the cells also contain other data. For example: " SS1 48 /"

CODE:

FindString = "SS1"
Findstring1 = "SS1 EXT"

With Sheets("Sheet1").Range(Rng4)
Set Rng = .Find(What:=FindString, _
After:=.Cells(.Cells.Count), _

[Code] ........

View 1 Replies View Related

VLookup Function That Searches For Two Variables?

Dec 9, 2013

I need to figure out a vlookup function that searches for two variables and return an answer. such as the example attached;

vlookup -- 12253 & 605.34 (if these are matching then) 131001

View 5 Replies View Related

Using Multiple Match Searches In Index

Jan 10, 2014

To summarize - Columns B through E are current MLB Players who I am trying to compare with the data in Columns G though J. My goal is to both use index and match to find the following in Column L: A comparable player name using the criteria of having an exact match for both position and age, but the closest approximation match between Columns E and J.

I have deleted a significant amount of player data to be able to upload the document on this site.

I am trying to find a way to combined exact and approximate matches in one single formula, but have been unsuccessful thus far.

View 10 Replies View Related

Search Box Searches Multiple Worksheets

Jan 9, 2013

I love Excel and love learning new things to do in it to create some amazing number-crunching techniques. I have created a workbook with multiple worksheets [one for every month in the year]. I searched this amazing forum and succesfully implemented the search box macro to find and copy the found data on a separate worksheet.

My question is that the macro I found in the this post Creating a Search Box in Excel only searches for the data in one worksheet. How do I tell it to search for the inputted data in all worksheets?

Here is the first part of the macro. I was trying to fiddle around with the strDataShtNm but to no avail.

Code:

Sub myFind()
'Standard module code, like: Module1.
'Find my data and list found rows in report!
Dim rngData As Object
Dim strDataShtNm$, strReportShtNm$, strMySearch$, strMyCell$
Dim lngLstDatCol&, lngLstDatRow&, lngReportLstRow&, lngMyFoundCnt&

On Error GoTo myEnd
'*******************************************************************************

strDataShtNm = "Sheet2" 'This is the name of the sheet that has the data!
strReportShtNm = "Sheet1" 'This is the name of the report to sheet!

View 2 Replies View Related

Create IF Function That Searches For Word No?

Jul 28, 2014

I am trying to create an IF function that searches for the word "No." I have created a table with monthly payments and if the payment is >= 0, it returns the word Yes. If the payment is

View 3 Replies View Related

Multiple Text Searches And Counts

Jan 21, 2009

I have data created by a program where it gives me a column "Code" with different text categories (in this case names of people). One person appears multiple times in this column as it track each time they register a statistic for the sporting event. The statistics are text fields registered under the column Labels

So I have two columns titled "Codes" and "Labels"

I need to extrapolate from this data a count of times each statistic happens for a specific player.

Example:
Code: Labels:
John FGA
John FGM
Joe FGA
Joe OREB
Zach TO

What I need is broken down by player with counts of each category FGA, FGM, OREB ect specific for each player creating a box score for the event.

View 9 Replies View Related

Not Sure To Use Dsum Or Vlookup For Multiple Searches

Feb 27, 2009

I would like to ask recommendations whether to use DSum or Vlookup, in order to do multiple search.

We receive a flat file on a daily basis, which contains four (4) columns. They are Group, Team, Taskname, and Number_of_Employees. The first three columns have text properties and the last one has number property. We copy this sheet into our workbook. There are more than 1,000 rows. I name this tab, "TotalWorkersbyTask".

Each group (first column) has its own tab. We try our best to name each tab to match the name of the first column.

We would like to find the unique value, in order to put the correct Number_Of_Employees into the correct column on each sheet. However, the relationship per column is many to many, which makes it more difficult.

For example,

Group,Team, TaskName, Number_of_Employees

12GR, Robert, Analyze raw data, 2.5
12OV, Tim, Analyze raw data, 1.25
12OV, Bob, Prepare reports, .85
16CJ, Jim, Prepare reports, .50
1008, Mary, Analyze raw data, .25
............

Each tab, such as 12GR, will have the task name on the line "Analyze raw Data" which matches the information "TotalWorkersbyTask" tab.

The problem is, if I do a Vlookup for Taskname only, only the first value of 2.5 will return in to the Number_of_Employees column.

For the tab of group 12GR, the logic supposes to be -> if the group is 12GR, and the name of the task equal to the one appeared in "TotalWorkersbyTask", return me the value of 2.5 in the specific row. With the same logic, on the tab 12OV, the same task name should return me the value of 1.25 as well.

As you see from the example, line 2 and line 3 are the tasks in the same tab, from the flat file received.

Then, this formula can be copied and populated into other rows and other sheets as well.

*********************
Questions:

1. Is there anyway to write the formula to gather the required information? My thought was using the Vlookup. However, it can see only one column.

2. Do I need to rename all the tabs to match the name of the first column received from flat file in order to make it more efficient? (In the present, there are some tabs that match the name, such as 12OV, and some tabs are something like ->Engineering, Research, etc.)

View 9 Replies View Related

Multiple File Searches In One Macro

Apr 11, 2007

Is it possible to do multiple file searches in one macro? Or does the data get stored in such a way that they'd conflict? First I want to search a folder for other folders. Then I want to search each folder for a certain type of file and then run a macro that does a whole bunch of things to each file. Including saving the file as a different format in a folder with a similar but different name. Currently I have everything written except the loop that will go through each folder. I was kind of hoping to use a 2nd file search to do so.

View 5 Replies View Related

VBA UserForm That Searches And Reads Open Worksheets?

Dec 24, 2013

Develop one system that can search and make changes on the user form. I already find the solution on my first worksheet(USER PROFILE) but when i used the same coding on my second worksheet(INVENTORY&RET), it doesnt work. Here is the example of my INVENTORY&RET worksheet example.xlsm

Hit MAKE CHANGE button to see the problem.

View 2 Replies View Related

Using Power Query To Do Multiple Searches On Website?

Jul 10, 2014

I've been trying to get power query to search a list of parcel numbers on an assessor site: [URL]. The problem I'm getting, every time you put in a different parcel number, you get the same URL for the results. I want to extract just a few pieces of information for each parcel search, but I can't initiate a search through excel. I'm thinking the problem is in the Data source settings. How can just get it to show me the assessors page results for a single parcel search in excel?

View 5 Replies View Related

Searches Through A Range And Changes Back Color To Values

Feb 11, 2014

I am doing a spread sheet for participation in a class. What I want is for whenever a student is absent, i.e. has a 0 in their point box for the day, that cell turns red. I have tried to make the .find method work but it has been uncooperative and so far and I can't seem to get it to even run. This is what I have so far:

HTML Code: 

Private Sub For_Loop_Click()
Set v = .Find(0, LookIn:=xlValues)
For Each v In [B6:B46]
Do
If v.Value = 0 Then v.Interior.ColorIndext = 3
Set c = .FindNext(c)

End If
End With
End Sub

View 2 Replies View Related

Search Box That Searches And Retrieves Data From Different Sheet

Jan 5, 2009

I've got a spreadsheet (sheet1) that has details of vehicles helpline numbers.

I want to create search box on a seperate spreadsheet, where the user enters a reg number, and it is searched for in sheet1. The row containing the result is then shown under the search box. Is there anyway to do this?

Also, I'd like to lock sheet1 so people dont see anything other than their search criteria. (ideally, I'd like sheet1 to be in a totally separate workbook).

View 9 Replies View Related

A Formula That Searches A Range And Gives The Sums Of The Adjacent Cells!??

Jun 23, 2009

I am looking for a formula that searches a range of data and then returns the sum of the numeric values in the adjacent cells. I have a calendar style spreadsheet with 2 columns for each day. In the first column it has a list of names and the second column a number.

I would like a cell to return the sum of the numeric values next to each name. All the names are entered into the columns randomly and are unorganised. The same name will appear multiple times in the range and have different numbers next to it each time. I am currently using (for example) =COUNTIF(H6:AL14,"bob") to tally up the number of "bobs" but really what i want to do is find a formula that in plain english does:

Search a range of columns and where cell = "bob" take the value of the adjacent cell (to the right) and total them up!

i have attached an image - i hope it makes sense what i'm trying to do - i would like Q3 to total up the numbers to the right of all "bobs" across all the days - so it should return 42

View 2 Replies View Related

Count Conditional Dates

Feb 7, 2009

I track dates of training for my fire department. Training is due every two years I want to know when the date is more than two years old and when it will be two years old in the next six months or less. I have conditional formatting that changes the color of a cell based on two conditions. Condition #1 (Yellow) the date is more than 2 years old, [=TODAY()-B2>730] Condition #2 (Green) the date will be more than 1 year old in less than half a year. [=B2+182-TODAY()<185]. Is it possible to count each occurrence those two conditions with a formula?

View 4 Replies View Related

Conditional Column Count

Jul 16, 2008

I have this big sheet, as u can see the device name in separate column and the information related to this device below it. i need to count the number of columns that contains = Fa or G only , also i need to count the number of columns that AdminStatus= up AND OperStatus=up ...

View 14 Replies View Related

Conditional Count Non Blanks?

Oct 10, 2013

I have the following table in excel

Id Name
1 dsf
1 sdfs
1 sdw
1 we
2 dsf
2 fds
2
3 saf
3 saf
4 fds
4
4 fds

I have then created a summary sheet, I want to count the values in column B (Name) for each Id (Column A) but I want to exclude the blanks. So my Summary page will look like this with the following results:

Id count
1 4
2 2
3 2
4 1

View 4 Replies View Related

How To Count Conditional Formatting Rule

Feb 15, 2013

Is there a way to programatically count the amount of conditional formatting rules in a workbook as i have been given a workbook which performs really slowly and the amount of rules seem to be a lot just wanted to count them

View 5 Replies View Related

Count Of Conditional Format Cells

Dec 9, 2009

I have a large spreadsheet which I require people to regularly complete. Due to the complexity of my business there are 180 columns, each of which has a variety of rules towards its completion.

I have used conditional formatting to check as many of the rules as possible (e.g. if somebody enters that delivery is required then the columns for delivery address cannot be blank).

Each column has the same conditional formatting but can have 1,2 or 3 rules. Min is always 1.

Most columns are fairly unique conditional rules.

There is a variable number of rows each time it is filled out (i.e. people add rows as required) but they copy and paste an existing row so conditional formatting is copied as well.

All conditional formatting rules use the "formula" setting and nearly all use many "AND", "OR" statements to make all the necessary checks.

If a cell is found to have failed the validation checks (e.g. is blank when should have an entry, has an entry when it should be blank) then it highlights the cell in red.

I now want to have a count of the number of "red" cells to show me quickly if it has been completed "correctly" or not.

I have written the vba code to check all the cells but cannot find out how to record if the conditional formatting is being used or not. "colorindex" returns the original colour of the cell not the conditional formatting.

View 9 Replies View Related

Formula To Count Conditional Formats

Oct 10, 2006

I'm trying to count cells affected by conditional formatting and I need help tidying up my efforts so far.

The numeric values in my table are formatted if they exceed values in corresponding columns on other tables, indexed via Hack #75. The logic for each cell runs someting like this:

if cell is numeric
if column in (E, M, X, Y)
if (value <c1 or > c2)
highlight in blue
end
else ' columns not in (E, M, X, Y)
if (value > c1 or < c2)
highlight in red
end
end
end

My attempt to put together a formula for each cell appears to work, it looks like this for cell B3:
'=AND(ISNUMBER($B3),
OR(
AND(.....................

View 9 Replies View Related

Count Conditional Formatting Results

Aug 22, 2007

i am trying to count some cells in a range that are coloured either Red, Amber or Green. the cell colours are defined using conditional formatting. each cell has different criteria for the conditional formatting, but the outcome will always be one of Red, Amber or Green.

i have used the code that is in the FAQ section (the '=ColorFunction' code) and this works fine if the cells are coloured manually. as soon as conditional formatting applies the colour, the formula seems to stop working (even after manually recalculating the worksheet). i have attached my spreadsheet - i am trying to solve the formulae in cells B21:B23.

View 5 Replies View Related

Count By Conditional Formatting Condition

Feb 20, 2008

I work as a teacher and my role is the analysis of data, something I can do fairly easily using my Excel knowledge but I want to take it a step further (maybe this isn't the best was and another suggestion would be great.

The spreadsheets I use have 400 students in columns A (first name) and B (last name), in columns C to AC I have the students targets for the 26 subjects/courses we offer, a student would only study between 10 and 14 of these so in a row there would be blanks. In cells AE to BE I have the students current grades (those which show current situation/progress). The first student would be in ROW 2.

I want to show whether a student is below, equal to or exceeding their target and have done this using Conditional Formatting (3 separate conditions) using RED for below, White for Equal to and Green for Exceeding.

I now want to count how many of each colour there are in each row to quickly work out how many of the subjects the students are falling behind in so we can focus our efforts on these.

View 5 Replies View Related

Conditional Weekdays (Dont Count The Weekends)

May 18, 2009

I am using office 2003 and I need to create the conditional (just like in the attached image), but I need that the days -1 (day) -2(days) or -3 (days) that are in the end of each formula, I need them to be weekdays (i don't want the to count weekends.

View 3 Replies View Related

Count Duplicates Conditional Formating Highlight

Dec 17, 2009

I am trying to teach myself something new, say I have a list of numbers in two rows and I want to count the numbers and have it tell me if there are duplicates and highlight the duplicates. I got the part about getting Excel to tell me if there are duplicates but I can not seem to figure out the conditional formating part. I uploaded a sheet.

View 3 Replies View Related

Conditional Count (Find The Minimum Value In The Range)

Dec 29, 2009

I am trying, without success, to create a formula that will refer to a column of data and do the following in one step:

1. Find the minimum value in the range, and then
2. From that minimum value, count back “up” the column the number of occurrences, including the minimum value, until a zero is reached. The zero should not be counted.

For example, if the values in A1:A6 are 1, 0, 2, -1, -2, 1, the minimum value is -2 and the count would return 3. (i.e. 2, -1 and -2)

View 2 Replies View Related

How To Derive Conditional Unique Count With Formula

Feb 25, 2012

I do have the following data set across B1:D23.

I want to summarise the data at the the top of the data set across D2:D5.

Is there any formula which can populate the same?

Sheet1

BCD1RegionTownUnique-Count Of PIN-Code(Desired Result)2EastTown143SouthTown234NorthTown3556RegionTown NamePIN Code7EastTown17000018700001970004210700100117004521270045213SouthTown240011514400118154001181640021417
NorthTown3110001181100211911002120110062211100372211003723110054

View 7 Replies View Related

Excel 2013 :: Conditional Count If Formula

Apr 4, 2014

I am working in Excel 2013.

My objective is to count the number of "Horizontal-Horizontal" entries in Column D for a specific value in Column C, BUT (and this is where I am lost), taking into consideration only unique values in Column A.

So, for the highlighted red entry in my spreadsheet sample below, there are 2 entries of Horizontal-Horizontal for Column C value A2961. BUT since, Column A entries for A2961 are duplicates, I want to return a value of 1. Hope this makes sense.

This is my formula that is working for the first part of the equation. I need to add something to it to condition the count based on unique values in Column A.

=COUNTIFS($C$2:$C$101192,C2,$D$2:$D$101192,"Horizontal-Horizontal")

A
B
C
D
E
F

4229532326
HORIZONTAL
A1657
Vertical-Horizontal
A1620
0

[Code] .........

View 4 Replies View Related

Conditional Count Excluding Hidden Columns

Jan 22, 2008

I was wondering if was possible to create a conditional calculation excluding hidden columns.

For example in C4:HA4 the cells may have a number of values L, S, U etc.

When a user access the spreadsheet certain columns a hidden based on comparing their PC user ID to an access list in the workbook.

What I would like to be able to do would be to count the instances of L in C4:HA4 but exluding the hidden columns.

I'd hoped I might be able to use SUBTOTAL in a similar way to Domenic came up with here:

=SUMPRODUCT(SUBTOTAL(9,OFFSET(C2:C100,ROW(C2:C100)-ROW(C2),0,1)),--(C2:C100

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved