Trying To Sum Data That Fits Certain Criteria

Feb 17, 2012

I'm trying to sum data that fits w/in two dates I've specified. Normally, this would be a simple sumif formula. But the data I'm actually summing has text string and so Excel doesn't see the numerical values to be able to add them.

Here's what my data table looks like.

Task / Duration Hrs / Start Date
A / 3 hrs / 2/1/12 08:00
B / 6 hrs / 2/6/12 16:00

I want to sum the total duration hrs for all tasks that start sometime between "Feb 1 0:00" and "Feb 29 23:59" so I want Excel to return the value "9" in this example. I know how to use LEFT LEN to return duration hours values if I was evaluating each cell individually but not sure how to combine if w/ the sumif formula if I want to analyze an entire worksheet of data.

View 9 Replies


ADVERTISEMENT

Find Smallest Number That Fits A Criteria

Mar 10, 2014

I'm looking to find the smallest number in a column that fits a certain criteria, and I'm not sure where to put the if function, or if I can use some other 'qualifiers'.

I was thinking something along the lines of If(E:E<>2, Small(E:E, ROW()-1),____) but I'm not sure what the "false" argument for the if function would be in the blanks. I don't want there to be one.

Where E:E is the range I'm looking in, and 'not equal to 2' is the criteria I'm looking to have filled.

So, "Find the smallest number in E:E that does not equal 2" would be the wording.

View 5 Replies View Related

Workbook No Longer Fits Screen

Jan 5, 2007

I've tried the F1 Help screens and searched the board with nothing that applys to my problem popping up.

I have several Workbooks that I use regularly. Without making any changes that I know of, recently several of the workbooks began opening too long and a little off to the right.

I can grab the top header and move them back to the left but I have no visible bottom slider bar and the side slider bar when at the lowest point that I can pull it down to is about 1000 rows from the last entry. I have other Workbooks that are working perfectly. Its like my Monitor needs to be two inches taller.

I have checked View settings -- Format Settings -- Resizing and all other things that I can think of, all to no avail.

Using Control G and trying to mentally keep track of my current last line number to enter a new row is really getting Old.

View 9 Replies View Related

Cell Returns Value If Another Cell Fits Within Date Range?

Feb 4, 2014

My company hires out equipment and we need to keep track of where a piece of equipment was at a given time and who to charge the equipment to for a particular week or month.

Each piece of equipment will have a separate sheet, which will list all of the hire contracts which have been placed on that machine:

Column B: Hirer name
Column C: Contract start date
Column D: Contract expiry date

Then there will be a main sheet (Summary) which will have all equipment listed, and all of the chargeable dates listed (see example below)

Week 1 ||
Week Commencing (B6) |Week Ending (C6) ||
25/11/2013 (B7) | 1/12/2013 (C7) ||

I want to add a Box underneath each piece of equipment on the main sheet that will show who to charge to. For example, underneath Week 1, I want it to show who the hirer is based on whether the Week Commencing to Week Ending dates fit within the contract start and expiry dates.

I have come up with a formula that almost works, but I can only get it to refer to a single cell in the equipment sheet. As soon as I try to get it to refer to all columns, it just automatically comes up with 'not on hire'.

This is my formula: =IF(AND(('Equipment1'!C14<='Summary'!C7),('Equipment1'!D14>='Summary'!B7)),('Equipment'!B14),"Not on hire")

View 1 Replies View Related

Pull Data From Sheet Based On Criteria - Populate UserForm And Ask For Missing Data

Feb 8, 2014

I have a spreadsheet that is updated weekly -- but every week new info is added that needs a user to input corresponding info. I use a vlookup function to link to another spreadsheet that populates the info from previous weeks and the info that is missing shows up as #N/A...

First I was using a msgbox function to get the info:

HTML Code: 

For Each b In myrange
If Application.IsNA(b.Value) Then
Employee = b.Offset(0, -2).Value
SSID = InputBox("Please enter ID# for " & Employee & " :", "New Employee Found")
b.Value = SSID
End If
Next b

But it can be up to 30 different new employees... and that is time consuming.

I would like to make it more user friendly by creating ONE userform that displays all of the employees as labels -- has a text box in which to put the ID # -- and then has a drop down box to choose the type of employee (2 options). I want all of that info to go back to the reference spreadsheet so it will be saved for following weeks, and then redo the vlookup to get the info into the new weekly spreadsheet (I can do that part)....

HTML Code: 

Private Sub CloseButton_Click()
Unload UserForm1
End Sub

Private Sub ComboBox1_Change()

[Code] ......

View 2 Replies View Related

Display Data By Criteria Has Multiple Rows Of Data

Mar 10, 2009

Need in displaying data by user input criteria, mulitple rows of display also need to display to blank out when no criteria is input. In example spreadsheet the criteria cell is B6 in "Results" page and needs to pull in data from the "Database" page.

View 3 Replies View Related

Copy Data With Criteria For Worksheet And Data Range

Oct 17, 2012

I have a workbook with 3 sheets

Sheet1 - TeamList - Column A is a list of all the team leaders which is used to create a new worksheet for every team. Col B is blank. Column C, D, E are the team lists where teams can consist of anywhere from 10-25 employees.

For example
Column A
Column B
Column C
Column D
Column E

Team Leaders

Team Leader
Employee
Pin

TL 1

TL 1
Emp 1
10001

[Code] ......

Sheet2 "RawHours" A raw data sheet that contains employee hours information

For Example
Employee #
PIN
NAME
Reg
OT
TRN
Stat
Sick
Vac
Berv

2000100
10001
Emp 1
24.00
0.00

[Code] .......

Sheet3 - Template

Basically what I want to be able to do is create a sheet for every team leader and copy and paste there team into the appropriate sheet.

I have the sheet create done by simply copying the template and renaming each sheet using the Team Leaders list from column A from the TeamList sheet. And then I copy the page setup information using the template as well but when it comes to pulling over the appropriate team members in to the appropriate sheet I can not seem to wrap my head around it.

Below is the current code I am using:

Code:
Option Explicit
Sub CreateSheet()
Dim LR, i As Long
Dim shCount As Integer
Dim Sh As Worksheet
Dim Cell As Range
Dim CpySht As PageSetup

[Code] ........

View 3 Replies View Related

Create Charts From Same Data But Each Based Ob Data Criteria

Aug 31, 2006

Hi, have a question regarding dynamic charts, specifically I am trying to create several dymanic charts based on data in a single column (So i can only say my first set of data will be starting a a set location in the chart, the rest has to shift down based chart data above it). This data should organized in charts depending on the data in several other columns. For instance, need to pull out values from column based some ID and some PartNumber. A sample excel or VBA would be much appreciated. I know VBA but do not know Excel VBA much.

View 9 Replies View Related

Lookup Data Within Data Range And 1 Other Criteria?

Jul 29, 2012

i have a treatment centre with 22 rooms some with mutiple beds, i need to view occupancy in a grid form to optimise bed useage. i need to look up a date that is after arrival but before depature that matches a room number, i have tried match, index, and, vlookup etc but all this info must exist on the same row

View 1 Replies View Related

Sum Data By Criteria From Badly Laid Out Data

May 21, 2008

I am creating a graph which charts the most recent 3 years of YTD data, and right beside it, the past 13 months of monthly data. The data comes from two other worksheets and is brought in with an Index/Match formula, but to create the chart without having to go and update the data series every month the data to chart (in row 46 to 49 of attached worksheet) needs to change each month according to data in rows 2 & 3, and when the Year changes, in rows 24 & 25. I am trying to do this an offset, and/or vlookup, and/or counta functions.

View 5 Replies View Related

Sum Data By Criteria

Feb 16, 2010

just wondering what the easiest formula is to get cell C51 to add up all the figures in columns I - K if the code in the code column corresponds with the code in cell A51?

View 4 Replies View Related

Display Data From Top To Down (with Criteria)

Mar 19, 2014

i am looking some formula to display/show data from top to down with criteria string "drop" in col.G ("status")..

View 6 Replies View Related

Extracting Data With The Criteria Specified?

Aug 4, 2014

I have created a table of data with Serial No, Name, Age & Common Friends field. Now i need to extract all the data (complete Row item) where the condition matches a certain criteria. Basically a formula or function which will say what are the names of people along with all other corresponding fields (Age & Common friends) who have common friends as "Jill" or "Jack" (For example). Note : I cannot use filter option and copy/paste the filtered data in new sheet as i am working with thousands of data items. Due to the nature of report software/data extraction report, multiple data items appear in single cell only (Multiple friends name appear in single cell).

View 3 Replies View Related

Matching Data With Specified Criteria

Jun 30, 2007

I need to match data with specific criteria. Details of the problem are as follows:

I have 2 sheets: "Main" and "Sub"

In "Main" there are 3 Important Columns: Col "C", "I" and "AF"
In "Sub" there are 2 Important Columns: Col "I' and "N".

Value in column "C" of "Main" is same as value in column "I" of "Sub", but not in same order.

Now the specific criteria:

If value in Column "I" of "Main" is not equal to "Zero", then the macro should pick up the value from the corresponding column "C" of "Main" and search for the same in column "I" of "Sub". After matching the same, it should find corresponding value in column "N" of "Sub". Then the macro should pick up the value from column "N" of "Sub" and put the value in the column "AF" of "Main".

This is basic requirement.

I am unable to retrieve the right value for the same.

Fine tuining will be:

If the value in column "N" of "Sub" is "Fully Automated" then it should only write "Automated" in column "AF" of "Main". And If the value is "Manual + ...." then it should write "Manual" in column "AF" of "Main".

View 14 Replies View Related

Sort Data Using Two Criteria?

Feb 17, 2010

I have multiple employees working on different projects. I would like to use a formula or some kind of macro where I can automatically scan an entire worksheet and manipulate the data to show me how much time was spent by each employee on each project. Using the SUMIF command only lets me use one criteria. In my case I need to sum if in the row there is a match with the employee name and the project name.

For example, if Employee A is working on Project 1 then sum the units. I would like everything summarized in a nice table. Attached is a basic example of my sheet.

View 3 Replies View Related

Autofill Data From One Tab To Another Under Certain Criteria?

Jan 5, 2012

I enter customer details onto an excel 2010 spreadsheet, ie customer name, date, description of order, amount of order etc. Sometimes, under certain criteria, the same or part of the same information needs to be added to another tab, ie tab2, on the same spreadsheet. I wanted to create an automated system to populate tab2, but cant figure out how.

I thought about creating another column in tab1, before all the customer information, which had a dropdown list option for yes/no when asked the question 'does it fit the criteria to add customer information to tab2'. This column would act as an alert, so that if i selected 'yes', then any customer information i enter in tab1 would then populate into tab2.

View 7 Replies View Related

Clear Data If Criteria Not Met?

Aug 4, 2012

I have a workbook that has lots of data that I dont need. In column B if the data dont start with the letter M/T/W/F/S I need the contents clearing.

View 1 Replies View Related

VLookup Data With Two Criteria

Oct 9, 2013

I need to look up data from a different worksheet based on two criteria: (Main worksheet)

Company (A1), Fund Name (B1) and Stage (C1)

A | X
A | Y
A | Z
B | I
C | X
C | I

A-C are company names, I, X-Z are fund names and i need stage data

In (worksheet 2) I have the raw data, where the data for company, fund and stage are. I need to import the data for stage into the main worksheet given if company A matches fund X. I tried sumproduct but that doesnt allow non-numerical data.

View 3 Replies View Related

How To Sum Up Raw Data With Multiple Criteria

May 13, 2014

How I can sum up from raw data under multiple criteria:

Raw Data

Region
Item
Company A
Company B
Company C

North
Orange
1,200
7,894
100

[Code] .....

In the table above I want to sum up as result below, what formula is best for it?

Result

Region
Item
Company A
Company B
Company C

North
Orange
?
?
?

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

View 5 Replies View Related

Data Extraction - One Criteria

May 19, 2014

This table has one column with people's names, other columns with different things, and one with hours.

The figures will change every month, and my dad doesn't know crap about excel, so anything that he has to go put in equations or sort again every month or whatever, is not going to work. it needs to be so that all he has to do is plug in numbers.

It can be either one or two ways: either I need to pull out all the rows that have hours above a certain amount, and have them sitting to the side/under/above the main table in the same worksheet.

I realize that that may involve a long complicated formula, however.

Alternatively, we can have it so that all the rows with hours above a certain number are color coded at located at the top of the main table. I figured that one out with ease, HOWEVER I don't how to make that automatic, so that it does it by itself when the numbers are plugged in each month. My dad would not be able to handle sorting.

I need the hours that =0 color coded and put at the bottom if possible, it's not absolutely necessary, however. I could not figure out how to put the highest hours on top and the hours equaling 0 at the bottom, considering that all rowsthat fall in between need to be kept in alphabetical order.

View 9 Replies View Related

Plot Data By Criteria

Aug 1, 2006

on a macro or vb code that can search a date and shows everything related to the date? My problem is when i select a certain week for example first week of july. I need a macro of VB code that can find all the dates (or days) in an array of dates and data, which are arranged randomly, that falls in that week and copy them to another worksheet. I have attached the file with this message.

View 9 Replies View Related

Sum Data Meeting 2 Criteria

Oct 6, 2006

I need to get the sum of a column where two conditions have to be met. I have tried doing something like: Sum(Sum(AND(V1:V1500="BEBLT", H1:H1500=17) +-Sum(AND(V514:V1512= "NVLIV", H514:H1512=17)))

In a nutshell I want to find the difference between the sum of a column whose criteria is 17 and BEBLT and the sum of another column whose criteria is 17 and NVLIV. This has been extremely frustrating since I am using SQL commands to pull the info from the workbook. Typically I would use

"Select SUM(Z) from Sheet1$ WHERE (H1:H1500=17 AND V1:V1500);"

Unfortunately for me my SQL command brings back an error so I must resort to finding the total in excel and then using the command to bring it into my VBA.

View 4 Replies View Related

Move Data Row When Criteria Met

Jul 11, 2007

I have a spreadsheet with when column K is Yes I need to move the data on that appropiate row to the corresponding worksheet in the same workbook. I have the button working but it moves the data in the row if No is in column K which is what I don't want. It also moves - removes the variables but I guess that is another question for another day.

View 6 Replies View Related

Count Data With Criteria

Jul 28, 2007

Check out the attached worksheet, I would like to count the x's entered in a row and which column the x was entered in.

I need to know how many times an x occurs in each row under each column heading throughout the year.

View 9 Replies View Related

Report Of Data By Criteria

Jan 18, 2008

I have a large list of items (up to 3000) that are listed by category, description, part number and weight in columns C-F. Column A is where a user will enter a quantity in the rows of the items that they want. Once the user is done picking their items they hit a button that I have written a macro in, to copy and paste only the rows that contain a quantity in, on to another sheet. My problem is that for these items (that contain a quantity) I need to have a line number (in column B) that starts at 1 and counts up for each line item. Issues to consider:

-Line item 1 may not always be the top item. (because the user may not choose the top item)
-There will be spaces inbetween the line items since the user may not pick all of their chosen items in order.
-Users can pick an item at the bottom then pick one above it. (The Line item numbers will need to readjust to include the new number in the middle)

This has been bugging for a few days now cause whenever I think I finally get it I keep creating circular references

View 2 Replies View Related

SUM Of Data Meeting Many Criteria

Mar 27, 2008

What I have is 4 columns of data broken down as follows Column A = Date Range B = Name C = City D = Amount of People.

What I want to achieve is to be able to go through my list of data and for all rows that match specifically matches A,B,C it will total column D and output to a cell. I also need for it to reflect the name somehow .. so in attached example A2-C2 matches A8-C8 so I would need the output of D8 + A8 (which should be 54) but I need for this to some how reflect a name combination City + Name. So I would know that abc & California have 54 people and that def and New York have 56.

I have attached a basic spread sheet of data; keeping in mind that in the complete data there could be hundreds of combinations for data to be matched.

View 8 Replies View Related

Summarize Data By Criteria

Apr 11, 2008

I have the attached spreadsheet that has 122 columns I would like to create several common button at the top left hand side to summarize my information. The columns that I would like to are name, id, partner.

View 2 Replies View Related

Extract Data Based On 3 Different Criteria?

Jun 28, 2010

I have a data sheet with 20 columns and about 300+ rows. In the results sheet there are 3 criterias (from column A, B, H in datasheet) which are in the form of dropdown in cell A1, A2, A3.

I would like to extract the data from the data sheet based on the criterias selected from dropdown list, to results sheet starting from row 6, with only 12 headers out of 20 (non-continuous, e.g. columns A-C, E, G-K etc.)

View 3 Replies View Related

Count One Piece Of Data But Only If A Second Criteria Is Met?

Feb 1, 2014

I'm looking for a formula that shows one piece of data but only if another criteria is met. Eg Column A1:A:100 show a piece of paperwork has been issued and column E1:E100 show the area that it's been issued to (North, South, East, Central)

I have a blank work sheet showing various % of things being late as a whole but also want to break this down into the four areas.

View 5 Replies View Related

Search Multiple Criteria For Corresponding Data?

Feb 26, 2014

I am looking to search in a table (say 4 columns) corresponding to multiple criterion (one for every column except fourth) and returning the values which are numerous (from column 4). I have tried the INDEX function but it only gives me one of the many cells. I am working on a table with +20000 cells per column

View 3 Replies View Related







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