Calculate Value Excluding Text

Feb 11, 2014

On the attached spreadh sheet I have production costs that I wish to calculate. There are certain courses that are a constant each month and they are input via a data validation list, however there will be courses that are run that are not on this list.

on the cell with 'Other' I want to total the costs for the courses that exclude the normal monthly courses.

Ive managed to use the formula below to exclude certain text but I cannot do it for multiple keywords, or maybe there is a simpler formula.
=SUMPRODUCT(--(G4:G31>0),L4:L31,--ISNUMBER(FIND("Suicide",G4:G31)))

View 3 Replies


ADVERTISEMENT

How To Calculate Leadtime Excluding Sunday

May 30, 2009

I have a start date in cell A1(5/15/2009) and a end date in cell B1(5/25/2009).

I would like to calculate the leadtime between the 2 dates in cell C1 excluding the Sundays in between.

I have out a formula(in cell c1) as B1-A1 but it is yielding 14 days whereas it should be12 days excluding Sundays.

View 9 Replies View Related

Calculate The Dates Between Two Days (excluding The Weekends)

Apr 29, 2006

I am looking for formula to calculate the dates between two days (excluding the weekends)
I am working in Saudi Arabia and the weekend days over here are thursday and Friday.

View 9 Replies View Related

Calculate Number Of Days Excluding Holidays

Oct 7, 2011

I need to calculate the number of days between 2 dates including holidays and weekends. That means I cant use NETWORKDAYS as it excludes weekend.

View 9 Replies View Related

Calculate Difference Between Dates Excluding Weekends

Jun 8, 2008

I wanted to calculate the difference between dates, excluding the weekends. After much thought i used =NETWORKDAYS(A1,B1)+IF(NETWORKDAYS(A1,A1)+ NETWORKDAYS(B1,B1)=2,-SIGN(NETWORKDAYS(A1,B1)),0) that seemed to be working fine. However, I had a problem today with this formula when my start day was saturday (24/05/08) and the last day was monday (26/05/08). What i want is that when i take the difference between these two days, i should get zero as answer as we are not including the weekends in calculation so the start date should ideally be the first weekday which is Monday. However, the formula is giving me 1 as an answer.

This formula works fine if i select 27/05/08 as last date in which case i get 2 as an answer which is right. In gist, what i am looking for is a formula which will give me the difference between two dates and exclude the weekends from the calculation. The last date can't be a weekend, but the start date can. Hence, whenever the start date is a weekend, the formula should take monday as a start day.

View 9 Replies View Related

Calculate Future Date Excluding Weekends

Aug 25, 2007

I am using the same structure to update another column, under the same sub:

If Target.Column = 5 Then '

Select Case Range("d69").Value
Case "CB1W"
ActiveCell.Value = DateAdd("ww", 1, Now())
Case "CB2W"
ActiveCell.Value = DateAdd("ww", 2, Now())
Case "CB3W"
ActiveCell.Value = DateAdd("d", 21, Now())
Case "CB4W"
ActiveCell.Value = DateAdd("d", 28, Now())
Case "CB5W"
ActiveCell.Value = DateAdd("d", 35, Now())
Case "NI"
ActiveCell.Value = ""
Case Else
ActiveCell.Value = ""
End Select

I would like to apply the code to the whole column but if I change Select Case Range("d69").Value to Select Case Range("d2:1000").Value I get a Type Mismatch Error (13) - (on Case "CB1W" ) - column d cells are data validation drop down boxes that get their value form a named ranged :Lead_Status. The column is also formatted as Text. (I applied the code to d69 because I have data already in the other cells which I don't want altered till I have the code working)

I would also greatly appreciate your advice on how to incorporate the WEEKDAY function to exclude weekends for the DateAdd function.

View 9 Replies View Related

Calculate Day Difference Between Dates Excluding Certain Days

Feb 2, 2008

I am attempting to get the formula in Column "E" (see attached excel file) to work based off the individual reps 'days off / holidays' (Columns K:P (or more as needed) that they might have. the formula I am using (which works fine) is:

=IF(C2=D2,0, SUMPRODUCT((WEEKDAY(ROW(INDIRECT(C2&":"&D2)),2)={2,3,4,5,6,7})*(COUNTIF($K$2:$S$2,ROW(INDIRECT(C2&":"&D2)))=0)))

My issue comes up when I am coping this formula for say 100+ rows. When I copy the formula to all of the rows, the (COUNTIF($K$2:$S$2) becomes static and does not realize that the row (ie. Row 26 Rep C) has different days off than Rep A. I can manually change the reference for the countif to specify the correct row to their own days but that becomes tedious very quickly. I was wondering if anyone has come across a way to make the countif work based off of that the name in Column B matches the name in Column G then looks 'to the right' and uses the 'days off' that are listed for the corresponding Rep. I have tried a few different ideas but nothing has worked so far.

View 2 Replies View Related

Calculate Number Of Hours Between 2 Cells Excluding Weekends

Jun 2, 2014

I have a worksheet where I capture the date and time of each new entry in column A.

In the next column, it's counting up the number of hours since that entry was made. However, it's including Saturdays and Sundays in this count and I was wondering if there's a formula to calculate the number of hours excluding Saturdays and Sundays? I know that network days would count the number of working days from one date to the next, but really need hours. Is this possible?

View 3 Replies View Related

Calculate Only Working Hours Between Two Dates Excluding Weekends

Oct 30, 2009

How should I calculate working hours between two dates? Say if start at 9/25/2009 7:26:13 PM and finish at 10/20/2009 9:46:13 AM, the function should return 245:20:00 because the working hours are from 8am to 11 PM (8 - 23), and there are weekends between the dates. Preferably the function should work like the NETWORKDAYS() function, but it should also include the time, not just the dates.

View 9 Replies View Related

Calculate Business Hour Downtime Excluding Weekends

Feb 15, 2008

I am trying to calculate downtime for a Service Level Agreement.

The data that I have is the start date/time and the resolved date/time for an incident.

The data are in the format - 1/1/2008 03:32 AM. The incidents may occur at any time but downtime is calculated only business hours and excludes weekends. I may be required to exclude holidays but that is not a hard requirement right now. What I must be able to specify are the working hours.

As example(s)
- if an incident is generated on 1/2/2008 4:00 PM and resolved at 1/3/2008 11:00 AM then the downtime is 4 hours.
- if an incident is generated on 1/12/2008 4:00 PM (which is a Sat) and resolved at 1/14/2008 11:00 AM (which is Monday) then the downtime is 3 hours.

The above assumes working hours are 8:00 AM through 5:00 PM.

I have tried using the NETWORKDAYS and WORKDAY functions with little success.

View 9 Replies View Related

SUMIF Excluding Text

Dec 28, 2005

I am trying to sum data in a column based on the absence of a character in a related column.

That is to say I need to be able to exclude rows that contain an "m" (there may be multiple characters in the criteria cell)

View 10 Replies View Related

Copy Cell But Excluding Text

Jul 19, 2014

Is there a way of Copying the Characters in a Cell but excluding the text from the copy.

EG:

305 GP
1,328 GP
10,250 GP
1,337 GP

But i only want the numbers and not the GP.

GP is Always at the end.

View 8 Replies View Related

Excluding Text Inputs For Attendance List

Jul 29, 2014

I'm making an attendance list that calculates regular hour and overtime hours for days in a month on rows. Besides the number of hours, there's input for v and s, which stand for vacations and sick days. I'm using the "if" function to separate hour and overtime, and when I put v or s in a cell it messes up my totals. Is there a way to make it so that the cells with v or s don't affect my other columns?

View 4 Replies View Related

Calculating An Average But Excluding Boxes With Text

Sep 25, 2009

I'm trying to get excel to calculate the average time spent on appointments by officers in a small team. Each of them sees people each day, and as we're very busy I'm eager to get the time spent on each appointment down, by giving them a target of the number of people to see each day. At the moment we gather some stats on this, which show how many people are being seen by each officer.

The attached example sheet shows for one week a list of columns with officer's initials at the top, and says how many people were seen by each person each day during that week and then a how many people overall for the week.

I'd like to be able to generate statistics on the amount of time each officer has spent on average with customers, and base this on the fact that people have 360 minutes per day (they do 6 hours of appointments and another hour for admin) to see people.

I think the spreadsheet attached gives a good idea of the system and what I want to do.

View 12 Replies View Related

Count Column Of Text Excluding Duplicates?

Dec 5, 2012

I need to count a column of text excluding duplicates, but only if they are duplicates of the cell directly above them in the column. Example:

a
b
c
c
d
d
a
b

I want this to return 6 instead of 4. Is this possible?

View 9 Replies View Related

Find Differences Between Two Cells Excluding Some Text?

Sep 4, 2013

I have two lists of data as below, and I want to find a match after excluding "Ltd" or "Limited"

example

If Cell A1 is "ABC Limited", and Cell B1 is "ABC Ltd"

This should show as a "match", otherwise it should show error.

View 1 Replies View Related

Clearing Data Excluding Text & Formulas

May 4, 2007

I need VBA code that will do the following:

1) Clear all data in Column F , excluding formulas (eg =sum, =F9+F10) & Text

2) Where a value begins with an equals sign for eg = 18000+50000-15000, this must also be cleared

3) The Data must be cleared from row 9 onwards in column F.

View 9 Replies View Related

Calculate End Date Using Start Date And Number Of Days Excluding Specific Days

Nov 22, 2013

I want to calculate the end date of my German courses. This is how it works:

A course consists of 60 LU*. The course can occur i. e. three times a week: Monday, Wednesday and Friday. In each day the course lasts 2 LU, which means 6 LU each week. There is no course on Tuesday, Thursday, Saturday, Sunday and on holidays. Therefore this type of course that begins on 18-Nov-2013 will end on 03-Feb-2014.

Another course which occurs Tuesday, Thursday and Saturday, and respectively has 2 LU on Tuesday, 2 LU on Thursday and 3 LU on Saturday and starts on 03-Dec-2013 will end on 06-Feb-2014.

Therefore I want to create a worksheet where I set the start date, choose the days and respectively the LU amount on those days. The end date shall be calculated according to these criteria.

The workday function on excel cannot do this and I do not have any programming skills to work with VBA.

Legend:
*LU = lesson units; 1 LU is 45 minutes

Holidays:
28-Nov-13
29-Nov-13
08-Dec-13
09-Dec-13
25-Dec-13
31-Dec-13
01-Jan-14

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

View 7 Replies View Related

Average Out Range Of Cells Excluding Text Found In Other Cells

Jul 17, 2014

What I want to do is Average out a range of cells "F4:F343". That's the easy part =average(F4:F343). However I want to exclude any numbers for that average if data in coloumn "Q" = "FMC"

Would that look anything like:

=average(F4:F343)/countif(Q4:Q343, "<>FMC")

I'm also displaying it as minutes in a day so i added *24*60 to the end of the formula and formatted to Number/.00. I've entered the formula and it will calculate but when i enter FMC to the appropriate area the average wont change.

View 2 Replies View Related

Look For Text And Calculate

May 20, 2014

I have 2 columns (A and B) of text, A and B that needs to be turned into numbers in column C. The text in column A can also occur in column B and vice verse. There can also be 2 or 3 values in column B, there is no "," to separate the values only spaces. Every text name has a value (they are explained in the file but not included in original files). If there is text in both columns it has to add the value for each text. I need to get column C calculated by using VBA. Column C is empty from the start and the rows can be +500.

In the file the result is applied manually.

View 2 Replies View Related

Calculate Text As Value

Aug 5, 2008

trying to calculate a text as value in a formula.

In cell A5 (please see the excel attached) I have a weighted formula that is supoosed to return a final result based on the drop down from cells B5 to V5. Drop downs give the option of choosing a value. Everything is going fine as long as you select a value (5, 3 or 0).

In cells H5, J5, K5, R5, S5, U5 there is also the option of choosing NA. I am trying to get the formula to calculate NA as being equal to 5. Basically, if for the respective parameter someone choses NA, the final result in cell A5 should not be influenced.

If all the parameters are 5 and only one has NA (any of the cells H5, J5, K5, R5, S5, U5), the final result (in cell A5) should be 100.

The same applies if all parameters are 5 & more than one cell or all the cells that have the NA options (H5, J5, K5, R5, S5, U5) are NA.

View 9 Replies View Related

Calculate Sum From Text Files

Nov 14, 2009

I have thousands of lines in a txt file and would like to total the sum of a field. here are the few lines in the txt file.

I would like to calculate the LPG_Amt for each of the Company_code and the count of number of lines for each of the Company_code. Request the members to help me with a vba code that could run in an excel file and give the output in excel.

Company_codeShip_to_PtLPG_Amt
DK01100281757,454
DK011002817620,630
DK011002818012,929
DK011002818121,783
DK011002818324,470
DK011002818512,478
DK011002818621,692
DK011002818714,424
FI011002872728,708
FI011002873122,114
FI011002873237,827
FI011002873362,425..................

View 9 Replies View Related

Calculate Based On Text Value

Aug 4, 2007

I want to apply 4 conditions.

Core ValueCurrent Pricenew Price
a 400
b 600
c 300
d 300

If core value = a then new price should be current *2%, if core value=b, then new price should be current price times 2.2%, if core value = c than new price should be current price times 2.5% and if core value=d, than new price should be current price times 3%?


also would i be able to do a formula if core value is either a or b, than new price should be current price times 2% and if core value is = to c or d, than new price should be current price *3%?

View 6 Replies View Related

Calculate A Formula Instead Of Returning Text

Mar 28, 2006

I am compiling data from several different, variable, worksheets. I am using
concatenate to add the name of each worksheet into a formula to pull the
appropriate data.

However, it is returning the text of the formula instead of
the results of the formula. How can I make it calculate the result instead of
simply displaying the formula text?

View 14 Replies View Related

Calculate Percentage Of Text Occurences

Sep 11, 2007

I am having problems with a macro I wrote that basically fills things in two columns based on a set of values from other columns.

Lets say it looks like this (column B is based on column A):

A1 = Hi
A2 = Hello
A3 = Hi
A4 = Hello
A5 = Hi
A6 = Hello
A7 =
A8 = Hi
A9 = Hello
A10 = Bye

After the macro runs, column B should look like this:

B1 = 10%
B2 = 20%
B3 = 10%
B4 = 20%.............

View 9 Replies View Related

Calculate Text Width In Points

Jun 18, 2008

Is there a way in Excel/VBA to calculate the width of a text string (in points or inches) with a specific font/font size/font attributes? Right now I have to use a static character count which assumes worst- case character widths for the font (Arial 8 point) but leaves unused whitespace to the right when the text string uses narrow characters.

View 6 Replies View Related

Macro To Calculate Formulae Stored As Text

May 8, 2008

I would like a macro which works on the selected cells:

A number of the selected cells contain formulae with an apostrophe in the beginning.

I need the macro to remove the apostrophe and calculate the formula in those cells..

View 9 Replies View Related

Calculate Percentage Based On Count Of Specified Text

Aug 8, 2007

I have a list of YES or NO answers in a sheet. I want to calculate the % of YES in the list. E.G. if there are 100 cells in total and 25 of them say YES and the remaining 75 say NO, the percentage should be 25%.

View 2 Replies View Related

Userform / How To Calculate Number Of Text Occurrences In Textboxes

Aug 1, 2010

Essentially the user will enter their responses from a drop down list (assigned to about 30 textboxes in the userform: named txt1code, txt2code, txt3code....txt30code) and at the bottom of the userform the number of responses ('Yes') will be counted in real time and displayed in a textbox. (without using a command button)

For example:

The possible responses in the textboxes are 'Yes', 'No', 'Not Applicable', ''.

Yes = 1

I'd like the calculation to ignore No's, Not Applicables and ; however, count all the 'Yes' responses.

If there are 17 'Yes' responses, 10 'No', 2 'blanks', and 1 'NA' in the form, the Totals textbox will display '17'. As the user is entering information-"Yes" responses only (added or deleted), he or she can visually validate that the number of 'Yes' responses has changed.

Is a real-time calculation possible in a userform?

View 9 Replies View Related

Calculate The Average Of A Range If It Meets A Certain Text Criteria

Feb 25, 2010

I want to calculate the average of a range...if it meets a certain text criteria.

For example, if the product is a "Course", then take the average of pages all those courses together.

ProductNumber of PagesExam316Course46Exam232Course32Exam245Course53Exam155Course246Exam118Course154Exam82Course434Exam80Average # of Pages for Courses = Average # of Pages for Exams =

View 9 Replies View Related







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