I have a code below to only allow a number to be entered into one of 2 cells. I'm trying to do conditional formatting based on these to cells, and the evidence is showing that even when I type a value into either I21 or I22, they are taking on a value of zero.
I have conditional formatting stating that if I21>0, then do one thing. And in a separate cell, I have =I22>0, then do another thing. Neither works, and even using =I22<>0, then do formatting, and it doesn't work, telling me that the assumed value is always zero.
I have two columns of data, which are constantly being added to. Column A is a unique name (no duplicates) and column B is its corresponding value. In many instances the value in column B is zero. I want to produce a list in column C with the names that have a positive value which will update automatically as names and values are added to column A and B. Is this possible?
Need vba to do the following: Compare 4 Columns for a 100% match: B, F, N, K.
IF ALL 4 columns] contain matches then, it is considered 100% match and can proceed with other code.
'Below is an example of how it should perform the COMPARISON:
'1. Compare what NSN's exists in B3 and B4: '...If = MATCH, proceed to check critical column F for matches '...If = NO MATCH, proceed with 100% FAIL rule.
'2. Compare what NSN's exists in F3 and F4: '...If = MATCH, proceed to check critical column N for matches '...If = NO MATCH, proceed with 100% FAIL rule.
'3. Compare what NSN's exists in N3 and N4: '...If = MATCH, proceed to check critical column K for matches '...If = NO MATCH, proceed with 100% FAIL rule.
4. Compare what NSN's exists in K3 and K4: ...If = MATCH, proceed to the set of rules used to perform updated and merging to these 2 rows. ...If = NO MATCH, proceed with 100% FAIL rule.
PROVIDE MESSAGE: IF all four match, THEN, MsgBox ("100% Match")
IF at any point along the way, one of those columns does NOT match, THEN MsgBox ("NOT a 100% Match")
(for example, if it looks at Col B - finds match, it then moves to F and if F does not match, stop and provide message (no need to continue comparing the last 2 columns)...
Two columns contain data (cash amount) which should be the same. If there is a difference, I need to show a minus value in a different cell and a plus value in another cell.
VBA code to change a cells value in a column and the adjacent column to the right of it. If the column has a negative number in it, I need to put the absolute value of that number into the next cell over on the right. I then need to change the original column values to 0. I've added a spreadsheet that shows an example and the desired output.
I have a 'rota' worksheet that includes staff names and their rostered hours on all dates through the month.
On each date of the month I need excel to find that date in column A and then look across the row to find any cells that aren't blank. When the cell has a value I need the name above it in row 1 and the value (number of hours) itself to copy across to a 'daily activities' sheet. The date is autopopulating on this sheet in cell H5.
The name needs to drop into column A and the hours worked into column B. I would like the first cell to be A9 and then down from there with no spaces in between names. The other info on the sheet will then complete itself using the name that has been dropped in using VLookup.
I'm presuming I can use a macro to do this for me but am really struggling where to start with it, and how to ignore blank cells as they will change cells on a monthly basis.
In Cell (W6) I have a value for example of 100,000 In Cell (AE6) will have a value of for example -100,000. In Cell (AF) I want to put a formula that says "if the number in (W6) is a positive number and the number in (AE6) is a negative number the return a value of "1". and vice versa if the number in cell (W6) is a negative number (-100,000) and number in Cell (AE6) is s positive (25,000) then also return a value of "1".
If i have enter any number in negative may be in cell A1 (Usually here the values will be derived by formulas not by manual entry), then it should get the result in positive (only Negative value to positive value only sign change no magnitude / value change).
Now i am using in B1 <=IF(SIGN(A1)<0,A1*-1,A1)>, if any negative value found then in B1 i can get positive value. For example -57 in A1 = 57 in B1.
Now my question is instead using Complicated IF & SIGN formula if there is any simple formula available ?
I have some problem when I would like to sum only positive decimals on userform, I would like to separate the numbers with comma (",") and sum them, the format should be "0,0" and only numbers and "," can be given in textboxes. How should I do this?
Im working on a time schedule form for my work. It all works good but it have one little error.
Lets say it looks like this cell a1 has start time 22:00 and a2 has a end time 07:00. i know that i can switch the cells in the formula =sum((a1-a2)*24). like this iŽll get a negativ answer and that f.cks up the totalt becuse of the negativ answer i get.
is there a way to get 7:00 - 22:00 and 22:00 - 7:00 to calculate as positiv with one formula?
I was wondering how I can replicate Excel's function abs(), which simply gives an absolute value of some number. Is there a simpler way to do that rather than creating a loop to test a condition? For example, I have a line:
w_1 = Range("E2").Value / Range("E3").Value
w_1 can be either positive or negative depending on the sign of E2 and E3. But I need w_1 to be always positive, no matter what signs E2 and E3 have.
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.
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.
i have a list of numbers in column A and B and in column C is = B - A. But what i want is for Column C to always = positive number regardless even if say A = 10 and B = 8 the true answer is -2 but i would like the reading of 2. Is there a way to say B - A and if = - make it -( ) ? (otherwords +)
How do I do summation of only positive amounts for a particular month, given that the column A is dates ranging from April to Sept while the amount column has postive and negative amounts.
For example
Column A Column B Date Amount 1 9-Apr-09 10,000.00 2 9-Apr-09 (8,000.00) 3 30-Apr-09 153,000.00 4 12-Apr-09 (3,000.00) 5 15-May-09 20,000.00 6 14-Jun-09 (5,000.00) 7 20-May-09 (6,000.00)
My form has a combobox with three options "Withdrawal" "Deposit" "Fee". I want to make sure that whatever number a user puts into a textbox, if they select "Withdrawal" or "Fee" that number will be converted to a negative number, and if they select "Deposit" it will be positive. I have written the following code and am just wondering if there is some super slick way of doing it other than an if statement.
I want cell D5 to be the minimum value of cells D29:T29. Some of the cells will have no value (or $0.00) and some will have values in them. I tried the following formula in cell D5 but it doesn't work: =IF(D29:T29>0,MIN(D29:T29))).
i want should be done as a function or VBa. I would like to have A Column so that only postive numbers can be entered. Disallowing 0 and below from being entered into cells.
I need to make a customized invoice for an international customer, that our accounting software can't seem to make. So I made an excel spreadsheet with a header and footer that looks like the top and bottom of our standard invoice. Then in the actual spreadsheet, I want to pull the line items from a second page in the workbook.
In that second page I have every product in our inventory on a separate row. It looks like this:
If the Quantity column is blank then I want that line to be ignored. If the quantity column has a positive number then I want the whole row to be copied to my invoice on the first sheet of the workbook.
I would like to see that I am continually saving on a per-day basis (as well as overtime). I allowance myself an allowance each day, but some days, I need to spend more money than that. The best solution I have to is keep a running total for myself, so that each day is affected by the preceding days. Therefore, if I spend too much, I now have a small defecit that needs to be corrected. This method keep me on track as far as saving and spending.
Question (and I copied the actual data from my spreadsheet):
Without having to manual enter the final calculations (because this is just a simple part of an overall larger, more complex spreadsheet), can I generate the values in my Value Change row, based on the information from my Running Total row?
For example, Day 1 to Day 2, I was able to incease my running total from 233 to 354 (meaning that I had saved +121 that day). Of course, this is an easy subtraction problem (Day 2 - Day 1 = Value Change). From Day 2 to Day 3, I spent way too much. The running total fell to -1198, meaning that I spent 1552 too much (that day's value change is -1552). Again, this an easy subtraction (Day 3 - Day 2 = Value Change, just like the first example). From Day 3 to Day 4, I was able to reduce my running total -1063, meaning that I was able to save 135 that day. This is my problem. Day 4 - Day 3 does not equal the value change of + 135. To get this value, the preceding formula now has to change to ABS(Day 3) - ABS(Day 4).
This is the issue. I need a formula that can work normally when the numbers are postive or when the second value is larger (in terms of absolute value). On the other hand, it needs to recognize the special cases like Day 3 - Day 4. Is this some form of a conditional function?
Running Total 233354-1198-1063-878-658-933-807-657 Percentage Change51.93%-438.42%11.27%17.40%25.06%-41.79%13.50%18.59% Value Change121-1552135185220-275126150
I'm looking for a formula that would add only positive numbers located in the same row and in 5 different cells. These cells may contain negative numbers at times. The total after adding the 5 cells are to be displayed in a different worksheet.
I need a formula that will look at a row (say row 1) starting in column F. When the first positive value appears in the row, the formula will then sum that value and the next 11 columns in the same row. So for example, starting in row 1 column F - here is an example list of values
0 0 0 0 3 4 3 2 0 4 8 7 9 0 9 0 6 4 2 2 0 8 7 The total would be 49 (start summing at the first 3 (which would be column J)and finish with the 0 (which would be column U))
Lets assume the formula is in column AZ, row 1 and I then need to drag it down
I have a forecast for a week, all days I type in, the real order, in the end of the week I got a difference between the forecast and the real orders. the difference can be positive or negative, in any case I want that difference to be added on the next cell on next week, plus the difference between the forecast and the real order from the day before, and so on.
I'm using this formula "E4*($L$3+1+IF(K4,ABS(K3/K4-1),0))" but if the real order is less than the forecast the formula add the difference increasing in a positive way, when what I want is decrease the value if the difference shows a negative tendency.