How To Add Values For Amount That Are Higher Than Same Row In Another Column

Jan 21, 2010

I have two columns (let's say column A and C), i would like to add the values in column A only if they are higher than the ones in Column C in the same row... how could i do that?

The sheet looks something like this, i would like to add the values in the first column only if they are higher than the ones in the third column and then of course get the sum of them... i would also like to know how many were there in total, but i guess i could do that with a count formula i just need the parameters

$ 67,100.00 $ 110,000.00 $ 165,100.00 $ 146,034.00 $ 239,400.00 $ 220,100.00 $ 90,184.69 $ 147,843.75 $ 168,500.00 $ 51,011.25 $ 83,625.00 $ 95,100.00 $ 89,860.32 $ 147,312.00 $ 198,200.00 $ 159,121.36 $ 260,854.69 $ 26,000.00 $ 129,941.44 $ 213,018.75 $ 235,700.00 $ 88,869.38 $ 145,687.50 $ 95,600.00 $ 27,772.54 $ 45,528.75 $ 43,000.00

View 9 Replies


ADVERTISEMENT

Comparing Two Columns And Returning Number Of Cells In One Column With Higher Values?

Apr 8, 2014

I have two Columns C and E that have dollar amounts in them. I want to compare each row in those columns and then total the number in column C that are higher that column E.

So basically C6>E6, C7<E7, C8=E8,C9>E9 should return the result of 2. There are two instances where the price in C is higher than the price in E.

View 3 Replies View Related

Find Two Closest Values That Are Higher

Jun 30, 2009

Got an equation nightmare on my hands.
So i have 3 columns of data
A: State Abbreviate
B: Benchmark Number
C: New Number

I am trying to get an equation that in column D will return the 2 .....

View 11 Replies View Related

VBA - Hide / Show Values Of 0 Or Higher

Jul 1, 2013

Basically, I am looking for a macro code to link to an 'Update' button that will do the following;

I will have 2 sheets, one sheet will be referencing data from other sheet with the following

=IF(Log Sheet!A4="Yes",(A1),"0")

This means, if it needs to be 'referred' it will go to the other sheet, and if it doesn't, then it wont and it will show up as 0.

Basically, every row will have this type of formula for 30 columns, and i would like a macro code that will hide values of 0, but even once hidden, will then show them again if in the other spreadsheet i change the value to yes, meaning i want the previously hidden row to show.

View 1 Replies View Related

Finding The Next Value Higher Than Reference Value And Printing Corresponding Values?

May 13, 2013

I have a reference value(say 'X') at L3, now i want to select a value next higher to this value(ie..'X') in the column ''C'' say and also i have to print the corresponding values of the row corresponding to B,C,D,E,F etc.

View 1 Replies View Related

Summation And Average Of Consecutive Values That Are Higher That Particular Value

Jan 26, 2014

Objective: I am trying to find consecutive (2 or more) lap time that is above a certain value per lap. Once that is accomplished. I would like to know the summation of these values and the average. These values (summation and average) are not over the entire data, but for the consecutive periods only. Ideally I would like the for n number of laps and lap-time.

(i.e) if threshold is 85 seconds. Please view the attached image and sample spreadsheet.

Lap #Lap TimeThreshold2 or more laps
0118.285118.2
192.7492.74
284.82
387.587.5
486.586.5
582
681
784.2
887
981

The formula I used to get the consecutive data above

formula I used is =IF(AND($B2>$D$2,OR($B3>$D$2,$B1>$D$2)),$B2,""). This yielded the values on the last column.

My question is, how can I sum and find the average and summation of consecutive value till blank cell. Using the example above, I would require the average, ((118.2+92.74)/2) in one cell. I would require the next cell to give me the average, ((87.5+86.5)/2. Also I would require the summations used.

View 2 Replies View Related

Macro Logic: Extract Higher/lower Values Based On Unique Cell

Jun 12, 2009

This is a logic based macro that needs to compare values in 1 column above a specific cell and take action until the column has no more data. Here's what I'm trying to do (and I've also attached a sample of desired results):

1) I want user to input starting cell. So I need to create a button for that.

2) This is where the logic begins and I'm having difficulty.
From cell defined in button, I move up one cell in that column and compare that value to the original cell.

If the value is greater than original cell then logic needs 2 outcomes:

a) move up 1 cell in column and if that value is less than original cell, then extract that value and copy that value one cell to the right or 1c.
b) move up 1 cell in column and if that value is greater than original cell, then move up again, until find lesser value than original cell. Once we find value less than original cell, extract value and copy value one cell to the right or 1c.

View 2 Replies View Related

Find Column "Amount". Insert Column Next To Amount

Feb 22, 2008

I need some code to do the following.

Look at worksheet 1. Find column "Amount". Insert column next to amount.
For all highlighted cells in column "amount" insert text "R" in adjacent (inserted) column.

View 9 Replies View Related

Speed Improvement - Macro Extract Higher/lower Values And Note Time Differences

Jul 8, 2009

I have a macro that needs a major improvement in performance. I have a Quad Core 2.67GHz single processor computer and with the current logic it calculates 20 values per minute. I have data sets that can be up to 400,000 data points, which means it will take 333 hours. The attached Sample file has over 9000 point. For this data set it takes 7.5 hours.

The core logic of the macro is to extract what I call “Break Point” into column M and “Time Difference” between the Break Points to column O.

I got the code from this forum (thank you DonkeyOte) and made some modifications. The modified logic does the following:

1) The user inputs the starting cell. In the Sample I use G200.

2) From cell defined in button, It moves down one cell in that column and compares that value to the original cell.

If the value is greater than original cell then there are 2 possible outcomes:

a) move down 1 cell in column and if that value is less than original cell, then extract that value and copy that value to the column M (Break Point value) and copy the Time Difference Value to column O. “Time Difference” is calculated as the difference between the 2 point breaks in Column A. In this case I’ve hardcoded 0.003472222 to get 5 minutes which matches up with each incremental time in column A, but I would like the Macro to automatically calculate that by the difference between Column A values.
b) move down 1 cell in column and if that value is greater than original cell, then move down again, until find lesser value than original cell. Once we find value less than original cell, extract value and copy value to column M and copy the Time Difference Value to column O.

Once lesser value has been copied to new cell, logic is now:
a) move down 1 cell in column and if that value is greater than original cell, then extract that value and copy that value one cell to column M and copy the Time Difference Value to column O.
b) move down 1 cell in column and if that value is less than original cell, then move up again, until find greater value than original cell. Once we find value greater than original cell, extract value and copy value one cell to column M and copy the Time Difference Value to column O.

At any point in the process if we find a value equal to the starting cell, we ignore it and the logic continues. The logic continues flip flopping like this to the last value of column G.

OR
Here's the logic now in reverse I need:

If after moving down 1 cell of original cell, the value is less than original cell then logic has the following 2 outcomes:

a) move down 1 cell in column and if that value is greater than original cell, then extract that value and copy that value one cell to column M and copy the Time Difference Value to column O..
b) move down 1 cell in column and if that value less than original cell, then move up again, until find greater value than original cell. Once we find value greater than original cell, extract value and copy value one cell to column M and copy the Time Difference Value to column O.

Once greater value has been copied to new cell, logic is now:
a) move down 1 cell in column and if that value is less than original cell, then extract that value and copy that value one cell to column M and copy the Time Difference Value to column O.
b) move down 1 cell in column and if that value is greater than original cell, then move up again, until find lesser value than original cell. Once we find value lesser than original cell, extract value and copy value one cell to column M and copy the Time Difference Value to column O.

Again, at any point in the process if we find a value equal to the starting cell, we ignore it and the logic continues. The logic continues flip flopping like this to the last value of column.

Once all the Break Points and Time Difference between Break Points are extracted for each value in column G, the AVERAGE, STDEV and MAX values of column O are calculated in column Q, R and S.

There is a loop that controls the execution of the core logic until the last value in column G. In the macro I’ve hardcoded last row being 9171, but I’d like the Macro to figure out what the last row is automatically.

I know this description is a bit long but I’ve worked for many hours on getting it work properly. I just need some help to make it run much faster. I hope someone can help me out on this. I have the right logic, just need the speed now and I really can’t figure it out.

Attached is a sample files demonstrating showing how the logic to flips back and forth as moving down the column starting in cell G200.

The sample shows the results first 4 loops (Rows 200 to 203). The values in M and O are the results of the fourth loop.

Again, assistance is very much appreciated because I've taken this as far as I can with my limited experience.

EDIT - I can embed the Macro, but it'll probably much easier to actually see it in the sample file.

View 14 Replies View Related

Add Number 1 In Adjoining Column When Existing Column Has Amount Highlighted In Green Or Red

Dec 27, 2012

I have a spreadsheet with sales which I colour green when they are outstanding and red when they are despatched. I would like to automatically add a 1 in an adjoining column when the cell is green (eg outstanding) or zero when they are despatched so that it totals up the number of outstanding orders.

a b

172.95 (this column would be green)
024.00 (this cell would be red)
124.00 (this cell would be green)
132.25 (this cell would be green)

View 3 Replies View Related

Removing Random Amount Of Values After The First Space From Right

Aug 15, 2014

I'm working on a big sheet in which I have values like the following:

Testtest 12345
Test 134691241
Testtestest 2385.234
Test test test 235
Testtest test 14.35172'36
T.E.S.T. test test 31246

What I need, is a formula removing anything after the first space (" ") from the right side, but I cannot seem to figure a way to solve the problem. I tried using SUBSTITUDE, REPLACE, FIND, LEFT, RIGHT, IF, COUNT, LEN formulas,

View 10 Replies View Related

Finding Certain Values In Large Amount Of Data

May 8, 2013

I have a large amount of data and am trying to find certain values.

Firstly - I am looking for any cell which has the number 0 in it, as I need to edit that specific cell. However, when I search for the number 0, multiples of 10 (e.g. 10,20,30,etc) come up in my search. Is there anyway to find the number 0, without also finding the multiples of 10?

Secondly - I am also looking for values over 100, is there a search function which allows me to do this?

View 3 Replies View Related

Determine Which Values/Cells Sum To A Total Amount

Apr 25, 2008

Is there a function, or how would I write a vba to figure out the following.

I have 86 items all with a different price, which come to a total of $348,359.33, is there a way to figure out which combination of the 86 entries will give me a total of $57,673.36

View 8 Replies View Related

Formula- To Calculate The Amount Due Based On Cumulative Sales Once A Breakpoint Amount Is Reached

Jan 28, 2009

I need a formula to calculate the amount due based on cumulative sales once a breakpoint amount is reached.

Example:

Breakpoint:
cum sales are > 500 pay at 3%
cum sales are >1,000 pay at 2%

month/ sales/ cumul sales/ amount due
jan/ 100.00/ 100.00/ 0
feb/ 600.00/ 700.00/ 6.00
mar/ 600.00/ 1,300.00/ 18.00

and so on...until the end of year.

I tried using an if formula by could not get it to work.

View 9 Replies View Related

Add Amount In Column

Apr 1, 2009

Trying to add a formula in my spreadsheet that will add every amount in column AQ8:AQ200 if the date in AQ8:AQ200 is march.

The format for the date is 3-12-09.

Here is what I'm trying.

=SUMIF(AU8:AU200,MONTH=3,AQ8:AQ200)

View 6 Replies View Related

Reference Cell & Add Amount If Positive & Subtract Amount If Negative

Jun 5, 2008

Im trying to set up an active running inventory sheet where: (A)the progressive daily sheet cells reference back to the corresponding master sheet cells fluctuating the master values, (B) the same progressive daily sheet cells reference back to a cummulative totals-cell based on whether I added or subtracted inventory. I want to make a copy of the blank "sheet 2" with all of the formulas and move it to the end of the workbook each day and enter new values which will reference back to the master sheet so that I can click on a date sheet and see an individual day's values or click on the master sheet to see the fluctuating inventory on-hand and the cummulative +/- totals of all days combined. I've got a couple hundred individual cells to reference. I've tried and tried but I can't make it work. Heres what I need to do:

I need to reference individual cells from "sheet 2,3,etc" back to a corresponding cell in a master sheet. But I need the values in each cell in "sheet 2,3,ETC" to increase or decrease the corresponding cell values in the master sheet. For example: If the value in the master sheet B5 is 200. Then in sheet 2, I enter +50 in B5, I need the master sheet cell B5 to increase by 50 to 250. I also need a way to decrease the cell value in the master sheet B5 if I enter a negative value -50 in sheet 2 B5. I also want to know if I can reference the same cell values entered in "sheet 2,3,etc cell B5" back to totals columns C5 for adding inventory or D5 for subtracting inventory in the master sheet where the master totals columns would reflect cummulative totals added or subtracted. For example: if the value in sheet 2 B5 is +50, then the value in Master sheet C5 would add 50 to a progressive total. But if the value in sheet 2 B5 is -50 then the value in master sheet D5 would add -50 to a progressive total.

View 4 Replies View Related

Adding Row And Column Amount

Jan 29, 2014

I need a formulas to add the row & column amount , see the attached example sheet.

Row and Colums.xlsx‎

View 1 Replies View Related

Cell Value In A Column Less Than Specified Amount

Sep 29, 2009

I just need a warning box that indicates a user has entered a cell value under 200. Here's what I have but it's not working.

View 2 Replies View Related

VBA To Round Amount In Column C

Sep 16, 2013

I thought it would be simple code. I have column C with amount such as

C1 : 3712.76
C2 : 277.91

When VBA runs, i want value to be rounded to display 3712 and 278 in C1 and C2 respectively.

Code:
Sub RoundC()
Dim N As Long, v As Variant, I As Long
Dim wf As WorksheetFunction
Set wf = Application.WorksheetFunction
N = Cells(Rows.Count, "C").End(xlUp).Row
For I = 1 To N
v = Cells(I, "C").Value
If IsNumeric(v) Then
Cells(I, "C").Value = wf.Round(v, 0)
End If
Next End Sub

This code working, but it end up value to 3712.00 instead of 3712 only. I do not want cell to display additional zero's.

what I am making error here?

View 3 Replies View Related

Excel 2010 :: Chart To Show All Of Amount Values For Each Size Value

Dec 12, 2011

I am trying to create a chart that would show all of the Amount values for each Size value that is in the example data below. The Size column has fixed values. In my example the values are: .5, 1, 2, 5, 8, 13 and 21. The Amount column data is variable. Any of the static Size values can be associated with many Amount values. I was attempting to have the static Size values on the X (horizontal) axis and the Amount values on the Y (vertical) axis. I would like to have all of the Amount values for each Size value be shown directly above the corresponding size value, in one vertical line. See example below.

I an creating this type of chart in Excel 2010.

Note, I am still new to this forum and don't know how to post pictures or Excel data into my posts. I am also using dots (periods) to provide separation in my examples.

Amount...Size
58.5.......21
1........... 0.5
2........... 1
1.5.........1
27.5.......13
12.5.......5
2............1
3.5.........2
17.5.......8
4........... 2
48..........21
0.5.........0.5
15..........5
11..........2

Chart that I am trying to create. The chart example is not to scale.

...........60.|
...............|..........................................................................*(21,58.5)
Amount.50.|
...............|..........................................................................*(21,48)
...........40.|

[Code] ........

View 2 Replies View Related

Column To Take Out Percentage Of Column A Up To Set Amount?

Nov 8, 2013

column to take out a percentage of column A up to a set amount. So B takes out 100% up to $40 then C takes out 100% up to $20 etc.

how I can get my spread sheet do accomplish this.

View 8 Replies View Related

Minif(s) - Lowest Amount In One Column

May 21, 2014

I'm trying to pull the lowest amount in one column if the values in 3 separate other columns agree.

View 3 Replies View Related

If Currency Amount Is Less Than $500,000 In Column I, Delete The Whole Row

Feb 16, 2009

If Currency amount is less than $500,000 in column I, delete the whole row. I would like a formula to do the following...

View 2 Replies View Related

Count The Amount Of Cells In A Column

Jun 10, 2009

I am trying to count the amount of cells in a column (Col H) containing data against a certain date which is displayed in another column (Col B)

Eg.
Col B................-...........Col H
13/06/09.................FIRST LAST
13/06/09.................
13/06/09.................FIRST LAST
20/06/09.................FIRST LAST
20/06/09.................

So that in the sheet next to it it would appear:

13/06/09 - 2
20/06/09 - 1

The dates don't appear in row order and the sheet has a filter on it so I am unable to select the Col H and just use COUNTA

View 11 Replies View Related

IF Priority Value Changes Then Move $ Amount To A Different Column

Oct 18, 2008

If the value in Column H changes then move the value from it's original location which would be either in J, K or L from there to the column corresponding with the value in H (reference 1=J, 2=K, 3=L).

So, in the file, if H3 were to be changed to Priority 3 then I want the value to move from J3 to L3 and if it were to be changed to Priority 2 then I want the value to move from J3 to K3. The formula needs to work on all variations ie priority 2 changing to 1 or 3 for the whole sheet. There is conditional formatting - would be nice to keep it but no big deal.

View 5 Replies View Related

IF Statement: Use The First Amount In Column P That Is Positive?

Apr 6, 2009

My Column P (Payback) has amounts ranging from negative to positive. In one of my calculations, I would like to use the first amount in Column P that is positive.
Depending upon scenario, sometimes this could be P4 other times it might be P17

View 3 Replies View Related

Count If Value Is Over Certain Amount And Another Column Contains Certain Text?

May 6, 2014

I have a worksheet where

Column D lists a service offered by a business, such as IMC, TC, Respite, etc

Column M lists how long the customer has used this service for in weeks, such as 4,5,3.5,6 etc

What I would like to do in another column is to count the number of clients who have used the service for 6 weeks or more broken down by the service type i.e. Count how many people have used IMC for 6 weeks or more.

If possible I would also like to be able to count those who have used a service for between 5.1. and 5.9 weeks too, again by service i.e. Count how many people have used IMC for between 5.1. and 5.9 weeks.

View 2 Replies View Related

Formula To Add Amount Of Rows In A Column

Aug 4, 2006

I know a bit about excel nut not a hugh amount! i need to know a formula that adds the number of rows used in a column. Does that make sense?? ok

NAME
rob
dave
jim
darren
adam
lee

i need a formula that will tell me there is 6 rows used in that column (not including the title).

View 3 Replies View Related

Formula To Add Amount Of Rows Used In A Column

Aug 4, 2006

I know a bit about excel nut not a hugh amount! i need to know a formula that adds the number of rows used in a column.

NAME
rob
dave
jim
darren
adam
lee

i need a formula that will tell me there is 6 rows used in that column (not including the title).

View 3 Replies View Related

Macro For Base Amount And Net Amount Calculation

Nov 20, 2012

For the below macro.

ABCDG
CodeTotalBaseNetA1 = 20%
A110083.3316.67A2 = 10%
A2350318.1831.82A3 = 7%
A3220205.6114.39A0 = 20%
A015015030

A1 is the code, take the total(B) and calculate the base(C) on the percentage given in the G, net = B-C. for A2 and A3 it is the same process.

For A0 the total (B) is equal to Base(C) and calculate the net on the given percentage in G.

View 1 Replies View Related







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