Calculate Totals With An IF Statement

Nov 8, 2006

I need to know how to calculate totals from a spreadsheet in conjunction with an IF statement.

I have a columns A & B below, i would like to calculate the numbers in coulmn B only if they match a specific criteria in column A.

For example: I want calculate the total of the numbers in coulmn 'B' only if column A is a '1'.

AB
24
33
12
21
35
13
22

View 10 Replies


ADVERTISEMENT

Adding Up Adjacent Cell Totals With A IF Statement?

Feb 10, 2014

how to write a formula or function to add up adjacent totals in column B that match the "name" in column A?

For example:

Mary's name is entered multiple times in column A and her earnings are recorded in column B adjacent to her name. How do I add up her totals only with a IF statement?

View 2 Replies View Related

If Then Statement Regarding Matching Dates And Cell Totals

May 20, 2009

I have Column A with chronological dates. Some of them will be the same. If the dates are the same then the lowest row of those dates would need to add all the corresponding values in column D and print the total to column E

eg.
A1 through A3 = 2/12/2009
D1 through D3 would need to be added
E3 would display total for =d1:d3

it would then do this for each of the dates that match in Column A

View 4 Replies View Related

Calculate Totals

Dec 12, 2007

I have a spread sheet that is used to review calls placed by a call center.

Column A has the extensions of the phones, and Column E has the type of call (Outgoing or Incoming). Each line is a new phone call.

We have about 8 extensions, but the worksheet could have a couple thousand calls. So, Column A could have extension 1401 from rows 1-100 as extension 1401 made 100 calls. I'm looking for a formula or macro that will summarize how many outgoing and incoming calls extension 1401 had. Thoughts?

My initial thought was something like this:

=SUMPRODUCT(--(A2:A5000=H2),(E2:E5000))

In this formula, I would type in the extension of H2 and it would scan Column A and add up the values in Column E. The only problem is, that Column H doesn't contain a numerical value. It only has "Incoming" and "Outgoing" (minus the quotes), so this doesn't work.

View 9 Replies View Related

How To Calculate Series Of Row Totals

Aug 7, 2014

I have a list of stores and the costs for various items.

Each store has (usually) more than one row.

Each store's items are totaled at the end of each line. Simple

What I do not know how to do is total all rows for each store, automatically. Like I said, I don't know how to explain it, so searching for it does not work out well for me.

Please see the attached sheet : How to Calculate Store Total.xlsx

View 9 Replies View Related

Calculate Totals In Column AB

Aug 21, 2013

I have a large spreadsheet, almost 9000 rows. I need to calculate the totals in column AB. There is a blank row seperating each group I need to total. Is there a faster and easier way for this to be done without adding the formula manually to each row? Here is a small example - I need to total the data under Total_USG

TOTAL_USG
LETTER_SMPLX
LETTER_DPLX
LEGAL_SMPLX
LEGAL_DPLX

154
162

[code]....

View 2 Replies View Related

Using IF Statement To Carry Over Grand Totals Based On Base Number

Apr 8, 2009

I have a number of Grand Totals that equal to Hours of Work in a day ( Based on Demand from Customer Orders)

I only have 95 ( this will be a number in a cell that I want to be able to change if needed) work hours available to me each working day.

I want each day to attempt to fill in up to 95 hours , anything more and it will push the remaining balance forward into the other cells.

IE here is what I have for the next 5 days for Totals

211.3798120.304870.0099110.734375.041828.1292

Under the 211 I want it to change to 95 and then carry over the balance to the cell under 120 , I then want that cell to change to 95 and carry over its balance to the next cell and so on down the line. I will always have 22 Working Days I want to work with. So the last day may or may not have a greater then 95 total.

The 95 part I want to be able to change that to whatever number I think I will have available to me and it will adjust accordingly through the line.

View 10 Replies View Related

Formula To Calculate Totals From Three Different Sheets

Jun 3, 2009

I have to calculate the totals for every individual for the past three months. I have to do this for 200 people, is there a formula i could use to do this? Eg. if a person made 50 sales in Jan, 40 sales in Feb and 100 sales in March i need a formula that calculates the grand total, which will be 190.

View 3 Replies View Related

Calculate Totals Over A Date Range

Oct 12, 2009

I am trying to calculate a total of a supplier between 2 dates. The total must fall in between the entered dates but the dates can be any given date and not limited to the dates in the supplied list. See attached scaled down example?

View 2 Replies View Related

Calculate Totals Within A Range Object

Feb 21, 2007

I have a range object called tbl which consists of a number of rows and columns of numbers.

I have another range object called e that is the total row just beneath tbl. I want to sum up the total of each column within tbl and put the result in the appropriate cell within e.

I can do it using a for/next loop as shown below but there could be 10,000 rows and a hundred columns in my range which woulod probably take forever. I know there must be another simple way to do it but despite racking my brains and trying various things I can't get it. I'll be very grateful for any assistance.

My current solution is as follows. (e is selected).

'Calculate totals and display them

For g = 1 To tbl.Columns.Count ' the number of columns
h = 0 ' Holds the column total
For f = 1 To tbl.Rows.Count - 1 ' The number of rows
h = h + tbl.Rows([f]).Cells(g).Value 'add the cell value
Next
e.Cells(g).Value = h ' Display the column total
Next

View 8 Replies View Related

Calculate Totals At The End Of Filtered Values

Mar 18, 2007

I need to calculate a subtotal like value on the last row of a filtered region.

e.g.

description year sum
name1 3 yrs ago 200
name1 2 yrs ago 230
name1 last year 250
name1 forecast 220
name1 forecast value 1400

name2 3 yrs ago 200
name2 2 yrs ago 230
name2 last year 250
name2 forecast 220
name2 forecast value 1400

How to put a value on the last row of filtered column. let's say that above list is very little in comparison with the real list. so, let's say that i look up for name36, witch begins on row (36*5) -> 5 is the values of the year column; after autofilter with "name1" the very left column with row index become blue and show rows from 1 to 5, than, next row is the last non-empty row.

View 9 Replies View Related

Time Sheet - Calculate Bi-Weekly Totals

Feb 25, 2014

I have a time sheet that I can figure the daily OT and DT on, but how to calc the the Bi-Weekly totals.

I can only have 80 hours per week, the rest needs to be carried to the OT field, but I can only have 40 of OT per week and the rest needs to be carried to the DT.

View 1 Replies View Related

Calculate Weekly Totals From Daily Figures?

Mar 4, 2012

I have a spreadsheet called PRODUCTION, where information is entered daily. I need weekly totals (mon - sun) to be extracted into another worksheet.

View 7 Replies View Related

Calculate Totals Based On Age Restrictions And Years Of Service

May 28, 2014

Per the attached, I am looking to add restrictions to my formula based on YEARS OF SERVICE per the age restrictions each person falls into, those with 0-4 YOS who are under 20 years old etc.

Book10.xlsx‎

View 4 Replies View Related

Compare Cells And Use A Range Of Values To Calculate Totals

Apr 16, 2007

I want to compare cells and use a range of values to calculate totals (i.e. count if cell A1=boy and cell A2 equals either "fat" or "skinny")? Also, I tried using wildcard character "*" in the SUMPRODUCT formula, which didn't work (i.e. if cell A1="boy*" would return at TRUE if the cell contained "boy", "boys", "boy and girl", etc.). Is there a way to include wild card characters in a SUMPRODUCT formula like the ones described above?

View 9 Replies View Related

Last Ocurance Of The Last Date Used For Each Month And Then Use The Cell Number To Calculate The Column Totals For That Month

Jan 28, 2010

I have a spreadsheet that is now a yeare old with 5000 rows and is now going into the 2nd year

Column A is for date input and the same date can be repeated several tumes :-

1 Jan 09
1 Jan 09
1 Jan 09
1 Jan 09
2 Jan 09
2 Jan 09
3 Jan 09
3 Jan 09
3 Jan 09

Sometimes there are all 30 /31 days but normally not .

I need to find the last ocurance of the last date used for each month and then use the cell number to calculate the column totals for that month.

View 9 Replies View Related

If Statement To Calculate A Fee To Be Charged

Dec 7, 2009

I have a situation where an asset-based fee charged to a client will be reduced (20% discount -

e.g., pay 80% of the fee) if below a set amount (250000000,(+B6-250000000)*0.00075+287500,IF(B6>100000000,(B6-100000000)*0.001+137500,IF(B6>50000000,(+B6-50000000)*0.00125+75000,+B6*0.0015))))>24000,IF(,(+B6-500000000)*0.0005+475000,IF(B6>250000000,(+B6-250000000)*0.00075+287500,IF(B6>100000000,(B6-100000000)*0.001+137500,IF(B6>50000000,(+B6-50000000)*0.00125+75000,+B6*0.0015)))),24000)*0.8

How can I rewrite this formula to capture.

View 9 Replies View Related

If Statement - Calculate Bonus For Old Employees

Mar 6, 2012

I am trying to write an IF statement. The IF statement should calculate BONUS for an employee GREATER THAN 50 YEARS OLD.

View 4 Replies View Related

Excel 2010 :: Determine Row To Calculate Based On Statement

Jul 5, 2014

I need some different columns within a row to calculate based on a statement found in an earlier column in the row. something similar to below. there will only be two statements total which are noted on the table below.

A
B
C
D
E

1
0
0
20
5%

[Code].....

So basically If column A = disposition calculate D and E in column B but if Column A = Receipt calculate in column C

The formula for D and E is not exactly as shown just using that as a quick example. I'm using office 2010.

View 1 Replies View Related

Forming An IF Statement Function (calculate The Grades Of The Students)

Jan 1, 2009

Writing a single nested IF statement function to calculate the grades of the students the following rules:

If the student grade isHis/her letter grade is
Greater or equal to 90:A
Greater or equal to 80 and less then 90:B
Greater or equal to 70 and less then 80:C
Greater or equal to 60 and less then 70:D
Any other grade:F

View 5 Replies View Related

IF Statement - Calculate Due Dates Based On Assigned Rank

Aug 1, 2014

I am using the following formula to calculate due dates based on the rank i assign an issue.

Note: a similar formula is used for the due date of section one, but if it is not complete, i do not want this formula to kick in a determine the due date for section 2. The formula itself is working fine, but is giving a 'due date' of 1/30/1900. I was wondering if there is a way to not display anything if it has no number to calculate from.

=IF(ISNUMBER(SEARCH("S",D11)),F11+30,IF(ISNUMBER(SEARCH("B",D11)),F11+30,
IF(ISNUMBER(SEARCH("A",D11)),F11+30,IF(ISNUMBER(SEARCH("QNM",D11)),F11+30,""))))

View 4 Replies View Related

How To Calculate Camp Meals Statement Based Only Daily Sheet

Jun 29, 2009

I have around 250 Employees Camp Meals Statements. Each day we prepare a Excell Sheet and enter the details file attached for easy reference Im manually calculating the Totals in each sheet if emp takes meals we marked as Y otherwise N based on that i want the total meals daily. One more thing Base on employeed code i want the monthly statement in another sheet same file attached..

View 9 Replies View Related

Nested If Statement - Calculate Value Based On All Of Active Cells In Column

Sep 11, 2013

I am putting together a procedure to calculate a value based on all of the active cells in column "A" and a couple other conditions. "k" is my variable to put a value into (k,8) until all the active cells in column A have a corresponding value in (k,8)

I have my scenarios all built out into If statements and the code runs....but no value is being added to cell (k,8) for any of the rows with entries in column "A" when the procedure is finished running. Depending on the values in (k,2) and (k,3) there are four different ways the value in (k,8) needs to calculate as I have built out below. Why my values aren't being added to (k,8)?

Code:
Sub CalcSpecialFee()
Dim k As Integer
Dim cell As Range
k = 4
Application.ScreenUpdating = False
Sheets("Summary").Select

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

View 1 Replies View Related

IF Statement- Spreadsheet To Calculate Referral Fees Paid To Our Agents

Jan 8, 2004

I am trying to build a spreadsheet to calculate referral fees paid to our agents. These are sliding scale fees and I need the formula to consider both the high and low range of the project value. For example we pay a certain percentages for sales in the following ranges:

Up to $5,000,000 (I got this one to work)
$5,000,001 to $7,500,000
$7,500,001 to $10,000,000
$10,000,000+

I assume the best way to do this is with an IF command but I only know how to use it for a single value, not a range. Also, if the statement is not true, then return $0.

View 9 Replies View Related

Complex If Statement To Calculate Date Range From Create Account To Stop Account

Sep 7, 2012

Creating a formula that basically has a big IF statement. I hope this makes sense, so here goes. I am looking to find the "age" or "elapsed days" of an ID from when they created an account to when they stopped. This might be very complex and if there's not a way to calculate the Elapsed days (even though that's what I prefer), perhaps there is some formula that can return a value like a "1" or "True" or something that lets me know the statement is true.

original formula from post 3261273
{=IF(D2>0,A2-INDEX(A$2:D$16,MATCH(B2&"1",B$2:B$16&C$2:C$16,0),1),"")}

New formulas needed or revised from the above:

Formula 1: If the ID in column 2 are the same, and if there is a value in column 3 (Create) and a value in Column 4 (Suspend) AND there is no value in Column 5 (Stopped), then subtract the dates in column 1 for Create and Suspend. My manual calculation result is in the column called "Elapsed Days (Create to Suspend but NO Stopped)

Formula 2: If the ID in column 2 are the same, and if there is a value in column 3 (Create) and a value in Column 4 (Suspend) AND there is no value in Column 5 (Stopped) OR Column 6 (Unsuspend), then subtract the dates in column 1 for Create and Suspend. My manual calculation result is in the column called "Elapsed Days (Suspend Only, No stopped or Unsuspend)"

Formula 3: The ID in column 2 does not have to be the same, but if there is a value in column 3 only (Create) and there is no value in the Suspend, Stopped, or Unsuspend columns, then place a "1" in the cell. My manual calc is the "Create Only" column.

Event Date
ID
CREATE
Suspend
STOPPED
Unsuspend
Elapsed Days (Create to Suspend but NO Stopped)
Elapsed Days (Suspend Only, No stopped or Unsuspend)

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

View 1 Replies View Related

Utilize A Select Case Statement In Target Intersect Statement

Jul 28, 2009

I am currently using an Intersect statement in a worksheet module to perform two things:
1. Insert a time stamp into row 2 when row 1 has a price inserted
2.To clear that time stamp if the price is deleted at some later date.

My problem is with the time stamp value being deleted by the user.
If I try to clear the price (now that the time cell =empty) I get a Runtime error 91 - Object Variable or With block variable not set.

I would like to convert this code to a select case statement but I'm not sure how to do this in this situation. Would error coding be appropriate in this instance?

View 5 Replies View Related

If Statement Within If Statement (recognize The Cell)

Oct 1, 2008

I'm trying to set up an if statement that will recognize that if a cell is FHR it will do something...but if it's PHR it will do something else. I think I found the place where I keep getting an error but I'm not sure how to go about fixing the issue.

View 2 Replies View Related

Excel 2010 :: Use One Set Statement To Set Second Statement?

Feb 14, 2012

I am attempting to use a previously Set variable as part of the next Set statement, pretty unsuccessfully at present.

My purpose is trying to look up

Code:
tb_SelJobID.Value

from a userform in Col Z then look across the row to Cols D,I,N,S & W (different types of work) to see if

Code:
TbSelYr.Value

matches the year selected then insert a formula in the row to the left. Then loop down to the FinalRow.

Currently my Set Found1 statement does not recognise my Found10 value. I know it will be my syntax as it always is. I have cut down the following code to display where the problem areas are, Found1 thru 5.

Code:

Sub CmdGo3_Click()
Dim Row As Range
Dim FinalRow As Long
Dim Found1, Found2, Found3, Found4, Found5, Found10 As Range
Application.ScreenUpdating = False

[code]....

Windows 7 with Excel 2010

View 9 Replies View Related

ADODB SQL Statement ORDER BY Statement

May 5, 2014

I have an Excel Sheet which I use as Database. The database has 11 columns and I insert data with the following function:

Code:
Sub testInsert()
Dim adoCommand As New ADODB.Command
Dim sQuery As String
Dim i As Integer

Dim strTest As String

strTest = "test"

[Code] .......

Now I want to retrieve this data. i.e. I want all F1 where F2 and F3 are 0 AND I want them ordered descending. I'm trying to achieve this with:

Code:
Sub testSelect()
Dim adoCommand As New ADODB.Command
Dim sQuery As String
Dim mrs As New ADODB.Recordset
Dim strTest As String

strTest = "test"

[Code] ....

The result I am getting looks like this:
9
8
7
6
5
4
3
2
15
14
13
12
11
10
1

I assume, that the data is interpreted as String instead of an integer. But I explicitely stated the data as Integer when storing the data into the DB.

View 5 Replies View Related

Add Totals By Day

Oct 9, 2008

Here's what I have...

Column A Column G
date $ Amount

my data example...

10/5/2008 $10.00
10/5/2008 $20.00
10/8/2008 $12.00
10/8/2008 $8.00
10/8/2008 $25.00
10/9/2008 $75.00

What I want the formula to do is look in Column A find all of the dates that are on the same day and then look in column G and add all of those $ amounts.

So the result would be...

10/5/2008 $30.00
10/8/2008 $45.00
10/9/2008 $75.00

View 4 Replies View Related







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