Find First Negative Value

May 8, 2009

I am trying to show how many years it will take for a retiree to run out of money.

row 1 is his available money (this in determined with other formulas such as income - expenses ect)

Row 2 is number of years (J2 would be 10 years)

Let's say available money turns negative on the 10th year (tenth column "J")

How can I write a condition statement that will say that says if the amount in row one is positive do nothing, but when it turns negative add row 2 of whatever column it turned negative in?

Example:

A B C D E F G H I J K L
5000442538503275270021251550975400-175-750-1325
123456789101112

View 7 Replies


ADVERTISEMENT

Find Right-Most (Last) Negative Value In Range

Apr 24, 2008

Following on from Location Of First (Left-Most) Negative Value In Range

I'd like to construct a formula which gives me the position of the right-most negative value in range.

The values in the range could be positive, negative, zero, blank or text.

View 9 Replies View Related

Find 0 Or Smallest Negative Number From Range

Mar 26, 2009

I am trying to write code that will locate either a 0 or the smallest negative number in a range, eg,

example 1,
8, 6, 2, 0, -0.5, -2
the result would be 0

example 2,
8, 6, 2, -0.5, -2
the result would be -0.5

View 6 Replies View Related

With Loop + Find Method And Sum The Negative Values

Feb 23, 2010

I have a very large worksheet (row count maxed in 2007, and then some), for which I need to do the following: search column A for a string that will occur many times, and then check the 10 cells that follow in its row for negative values, dropping some sort of indicator in the 11th (shading it red or something would be fine). An additional bonus would be if the 10 cells that possibly contain a negative could be summed (the sum could serve as the indicator?). If no negative is found, nothing need be done, and the macro should chug along searching A for the next reference to this string.

My hope was to do a sort of "With Range("A:A"), .Find("MyString")", save position as StartPos, do the 10-cell row checking in a nested IF or For (though the For would take a long while, checking each cell individually), then doing a .FindNext after StartPos until = StartPos (does .FindNext loop back to the top?). The formatting of the indicator cell in the 12th cell in each relevant row doesn't really matter, it's more just for jumping to critical rows.

View 3 Replies View Related

Find Where Values Change From Positive To Negative

Nov 20, 2007

I have a series that comprises of two rows:

Row 1 is date
Row 2 are values

I am trying to find a formula where I can identify where in row two the value chages from positive to negative, and where it changes from positive to negative it should return the date the value changes from positive to negative ie:

ROW 1 08-Jan 09-Jan 10-Jan
ROW 2 1111 22222 -33333

The formula should identify that in row 2 the negative value occurs at -33333 and at the 10th of January.

View 5 Replies View Related

Formula To Make Product Of Two Negative Numbers Negative

May 12, 2009

I have a large dataset (24000 rows) that requires me to multiply two different columns of integers. In some cases, the two integers are both negative and multiplying them results in a product that is positive. I actually need that product to be negative rather than positive. I can't quite seem to figure out the best way to accomplish this.

View 5 Replies View Related

Convert Negative Numbers With Negative Sign On Right

Aug 1, 2007

I have data that comes from a subsytem that places the negative sign at the right of the number, so it is recognized as text. I can get around this using find and replace and then a second step to multiply that by -1, but is there a formula that can do this for me?

I was trying if(right(A1,1)="-",TBD,A1)

View 4 Replies View Related

Positive To Negative If Cell On Left Negative

Sep 1, 2007

I have data starting in E7. I want it to go down the column and find the negative numbers. If it finds one then I want it to change the number in the row to the left of it to a negative. So if E67 is a negative number, make D67 a negative and so forth down the line Sounds "simple" but how do I do it?

View 7 Replies View Related

Userform Listbox: Check Wether Range Have Negative Values Or Not If Yes Load All Negative Values In The Listbox1 By Clicking Checkbox

Jan 19, 2009

I have data in range J2:J365 , H368:H401 & J403:J827. i want to check wether this range have negative values or not if yes load all negative values in the listbox1 by clicking checkbox.

View 3 Replies View Related

Present Value Of Negative Value?

May 29, 2014

How can you calculate the present value of a negative value in excel?

View 2 Replies View Related

Negative Time

Jan 30, 2007

i am tracking my working hours at night, so i type in the time i start and the time i quit like this:

A 1 start B 1 end

A 2 22:30 B 2 02:30

now i want to calculate the time between.
but since excel don't like the negative time i got a problem. i figure i must make a function something like
=IF(B2<A1,B2+24)

i have tried a few but i don't get the parameters right so i get errors,

View 9 Replies View Related

Negative No.s As Result Is Getting

Jul 7, 2009

I've got a file with sum formulas and datas as well,i need to know when ever i'm getting a negative no as result, it should be zero or the cell should be empty.

View 4 Replies View Related

Negative Times

Dec 22, 2009

For simplicity sake I will put what I have in close proximity cells and what my issue is. I am taking a number A1 (7.7) and turning it into time A2 =A1/24 (7:42)

A3 (18:00) Which is our work start time. I am taking 7:42 min estimated work day hours and adding that to our start time of 18:00 for A4.

A4 =A2+A3 (1:42) This tells me that we should get done around 1:42 am

A5 I enter the actual time we finished. Let's say (2:23)

A6 =TEXT(MAX($A$4:$A$5)-MIN($A$4:$A$5),"-H::MM")

This gives me an answer of (23:19), but if I type over the formula in A4 (1:42) which is the answer to the formula and already has that number there, I get the answer (0:41) in A6 and that is the answer I want. I can't figure out why I can't get A6 to give me an answer of (0:41) with a formula in A4. I even tried having another cell formulate A4 and then A4 =that cell and it is still the same.

View 5 Replies View Related

Negative Percentage As Zero

Feb 17, 2009

i have for example column I, J & K. col I and J has both negative & positive values and K (I/J) works out the %

Col I Col J col K
135975 583333 23%
-27748 583333 -5%
-18186 583333 -3%
272550 583333 65%

But i need a formula or formatting that always shows the negative percentage as a zero.

View 2 Replies View Related

Delete Whole Row Containing Negative Value

May 23, 2012

I need to delete a whole row if column J contains a negative number.

I am having difficulties finding the correct wording for picking up the negative value.

I can get it to delete using a word as the reference but not for negative values

Code:
Sub DeleteRows()
Dim c As Range
Dim SrchRng
Set SrchRng = ActiveSheet.Range("j1", ActiveSheet.Range("j65536").End(xlUp))
Do
Set c = SrchRng.Find("

View 4 Replies View Related

IF AND With Zero Or Negative Number

Mar 9, 2013

I would like to add to this formula.... if the result of "$L$6-Q15", from below, is 0 or a negative number, then the desired result would be 0 for this formula.

Possibly wrapping IF AND somewhere in this...

=IF((O15+(K16*$L$5))>=$L$6,$L$6-Q15,K16*$L$5)

View 2 Replies View Related

Look Up First Negative Number

Aug 15, 2007

This may sound simple, but is not (it might be easy for you hopefully)...... I have a string of numbers and the first few numbers can be either postive, negative or zero....Later on, the numbers all become negative......

I need to find the the cell which contains the first negative number in the consequtive negative numbers.....The difficult part is the numbers before the consequtive negative numbers can be anything......

View 9 Replies View Related

Negative Number

Jan 2, 2008

is there a way to format a cell that will make the number a negative number regardless of what number I type; whether I type a positive or negative.

What i'm trying to accomplish is enter a number and the number will be negative. I don't want to have to type a negative in front of the number.

View 9 Replies View Related

Negative The Time

Mar 8, 2008

I have a formula calculating time to the second (e.g HH:MM:SS). I am calculating the difference from the time something was scheduled to be done vs. when it was actually completed. What I can't get Excel to do is calculate the same time but listing the time in negative, as if the project went over and by how much.

I know how to do this in numbers view, but unable to do this in time view.

View 9 Replies View Related

Negative Minutes

Mar 10, 2008

I have, on some occassions, negative minutes e.g. -125. I have a formula in a separate column which divides the minutes by 1440.

Hence I could have

AE AF
Session Minutes Session Time
210 03:30
-125 ############

Column AE is General format, whilst column AF is Custom i.e. hh:mm.

How do I rectify the formula AE2/1440 so that I get the Session Time to work but with a negative sign?

View 10 Replies View Related

Red Negative With £ Sign

Oct 24, 2008

is it possible to display the value in a cell with a £ and also make it automatically go red when the sum is negative?

View 9 Replies View Related

Negative Cell Value

Nov 5, 2008

How do you format cells so that when a number is entered in a certain cell it will automatically reflect that same number as its negative value, displayed in red & in brackets.

View 9 Replies View Related

SUM Negative Numbers

Sep 23, 2009

I'm trying to sum negative numbers using the following formula, however for some reason it's not working in the way that it would if I flipped the < to a > sign.


=SUMPRODUCT((Data!$AB$10:$AB$3222=$C$58)*(Data!$L$10:$L$3222=D57)*(Data!$W$10:$W$3222

View 9 Replies View Related

Sum Negative Values IF

Dec 11, 2003

Using Excel 97, Is there a way to Sum the values in columns if the value in cell B is a negative number. I want the total placed in their respected columns after excel finds 8 Consecutive Blank rows.

Ex

B1:B70 (remember the number can change it can also be B1:B80)

B1:B70 is a positive value, but then B85 is negative so begin the calculation from that point.

Sum B85,F85,G85,H85,I85,J85,K85,L85,M85,Q85,R85. And place the value in their corresponding cell after 8 consecutive blank rows appear in row B.

View 9 Replies View Related

Sum Every 2nd Column If Value Not Negative

Dec 4, 2009

I am trying to sum up numbers that are in alternate columns but if the number is negative I do not want that one added. I am getting the standard # name error. Here is my formula: =SUM G3+J3+M3+P3+S3+V3+Y3, If >0

View 3 Replies View Related

Matching Negative Value W/ Corresponding Positive Value

Jan 23, 2008

I have a spreadsheet of invoices and credits memos (500+ rows). Is there a way to match the positive and negatives that match? For example if there is -40.39 in one cell and positive 40.39 in another that it could highlight both those cells. I was thinking to do it in conditional formatting however I can not get it to work. It does not have to be fancy I just need to highlight them because there will not be a lot that do actually match.

View 9 Replies View Related

Do Not Display Negative Numbers

Oct 19, 2008

I have a very simple formula which is basically one cell minus another "=A1-B1".
When the values are equal, the cell this formula is in will display a zero. However, when the subtracted figure is greater than the first figure, i will then get a minus figure E.g. 10-11 = -1.

How can i make it that when the formula result is less than zero (i.e. a minus number) the figure displayed stays at zero but still using the minus funciton? Basically once it hits zero i need it to stop subtracting. This may be really simple but i cant figure it out.

View 4 Replies View Related

Display Negative Times

Jan 5, 2009

I am doing math on times and want to be able to SEE values of Negative times instead of the ########. This is happening in a time card because I am summing the weeks total and subtracting 20 from it (expected 20 hours per week) so it will ALWAYS be negative until the last day of the work week.

View 4 Replies View Related

Interpret As Being NEGATIVE Numbers

Feb 24, 2009

I want to key-in positive numbers, which I really want Excel to interpret as being NEGATIVE numbers. In other words, I want to avoid repeatedly striking the MINUS key. How do I:

Format these Data-Entry cells to this?
Format these Data-Entry cells to return RED displays?

I'm using Excel 2000

View 2 Replies View Related

Convert Positive # To Negative

Mar 11, 2009

Is there a simple way to convert a positive number to a negative number ?

Fromto
10(10.00)
56(56.00)
116(116.00)

Additionally, would the same procedure work for time?
So if I had a column listing hours that looks like this:

10:05:00
4:34:00
2:18:06

is there a way to convert this to negative hours? Understandably, there are no such thing as negative hours, but I am trying to illustrate a situation where an internal procedure was completed x amount of hours before the specified start time.

View 6 Replies View Related







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