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?
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.
Any way to make a formula that would "COUNT" the number of positive values from 0 to 999 (no negatives and nothing higher than 999). Another way of saying it would be values greater than or equal to 0 but not more than 999?
For example. If you had the following numbers in a list, I would like a formula that would only count the 3 numbers that are less than 1000 but equal to or greater than 0.
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))).
Using AVERAGEIF on a row containing both positive and negative values one can easily calculate the Average of only the positive or negative values. I need to filter the 20% outlier on each case, how can I do that with TRIMMEAN ?
This is an example of the current formula using Averageif for the positive values:
Based on filtered data I want to produce a result for the Average trade gain.
Lets say I have 100 rows of data, and based on filtered settings the rows reduce to 5 rows of results.
Of those results I want to find an average of all the positive values (trading profits) and ignore the negative ones.
$2000 $1500 -$700 $4000 -$1000
The answer should be (2000+1500+4000)/3
The need for filtering makes this problematic. I am inclined to use SUBTOTAL as it applies to filters rows only, but I can't see how to use an IF statement within it.
In addition to this I would also love to know how to subtotal all positive values without averaging.
I'm trying to define a range of values in two cells M1:M2; lookup that range of values in a three column array (K12:M600) and sum the values in column M12:M600 if they are positive values. I've been trying this formula:
I've got 12 months worth of business accounts which have been downloaded onto a single spreadsheet.
These show negative and positive values. As I only want to work on the negative figs at the moment, how do I highlight the colour of the positive value cells or font to prevent any mistakes ?
I have a sheet which contains credits and debits for several accounts:
Customer Amount
ABC 2000
XYZ 3000
XYZ 1000
ABC 1000
ABC -5000
XYZ 1000
What I need to do is match negative and positive values within each account and highlight them. I have been able to put together a VBA code from google and other forums to match within all rows.
Code: Sub matchdata() On Error Resume Next
For Each cl In Columns(10).SpecialCells(2, 1) Err.Clear
[Code] ........
1. I need to adapt the code so as to do matching within accounts. Example within ABC and XYZ separately.There will be 100s of accounts. 2. If possible, I need to offset a credit (negative value) with multiple debits. Example: ABC -5000 would offset ABC 2000 and ABC 1000. I am not worried about the remaining balance.
I use data on a text file and import this into Excel and use a macro to format. The data lists invoices and credit notes and their dollar value.
Due to a fault in the program that creates the text file all dollar amounts are shown as positive figures. Credit note amounts should correctly be shown as negative figures.
The invoice number format is 8 characters beginning with a letter and credit notes begin with a number.
Is there macro code that will change credit note values to a negative figure?
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:
I've got an excel sheet that lets people choose between 2 choices. I'm using scroll bars to make it easy for them to choose and visualize their preference with as little mouse clicks as possible. The scroll bar is only one sided though, meaning it starts from a min value to a max value.
I would like a scroll bar with a of 0, with the value increasing positively as the user scrolls to the left, and the value also increasing positively as it scrolls to the right.
I'm trying to count the number of times a payment is made within a certain set of dates. I believe that I should be using a countifs function, but I'm not exactly sure how to program it. I have a number of months, say the last 12. And in each month a payment is made or it isn't made.
I want to compare 2 columns based on their positive and negative values..
For example,
A B C ID1 91 -7 ID2 -7 74 ID3 -4 -5 ID4 90 4 ID5 -55 34 ID6 33 3
I want to know 1) which id's have both negative values in both columns B & C, 2) which id's have both positive values in both columns B & C, and which id's have opposite signs in both columns B & C.
EXCEL 2010. I have a column of negative and positive times (eg. -00:52, -03:07, 06:02) in custom hh:mm format, and would like a new column rounding these times to the nearest negative or positive hour (with just the whole hours displayed), so I need a formula that would give me (for this example) -1, -3, 6, etc.
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.
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)...
I want to show in tab total view the advices for problems which come from a questionnaire. This questionnaire applies to its advices on the basis of given questions of the user. In the advice tab you can see the advice given for each question. Because I have shown in the advice tab in column B if the advice need be in the tab total overview, if this is not the case there is nothing visible there (empty cel). In column C indicated by 1 if the text should be to the overview tab and a 0 if the specified text should not be taken to the tab overview. How can I get in the overview tab only the text from column B which have in column C the value 1 (without the empty cels)? Even when the data in tab advice changes i want that the information in the tab overview also changes.
This is only a portion of the code, but the part that I am having problems with. It is within a for loop, hence the x. The Cells(x,14) is a list of cells, e.g. "u22", "u23, "u37", and I want to use those values as the input to the range object, but I keep getting object-defined error. It worked fine like this when I was using the names of checkboxes in Me.Controls().value . is there some property of the range object that doesn't allow this? As far as I can tell it should work; I'm grabbing the value, which is "u22", which is the type of data the range object needs.
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.
I need to find the average of a list of text cells. My list is in column A, and in column B I've assigned each of the text cells with a numeric value. I'm then doing the average on Column B which will return a numeric value which will represent one of the text values in column A.
I have a spreadsheet with about 300 products listed in column A. In row 1, I have 30 store listed across. This produces a grid of data with sales for the past 3 months. I would like to easily have a list of the product and store that had 0 sales. I have tried a combination of INDEX/MATCH as an array formula but can't get it to work.
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.
Each day I am going to have a list of about 300 different ID numbers, which i have already got a macro for creating, that outputs them into a single column on a sheet.
The next challenge Ill face now, is that I'll have a list of maybe 500 ID numbers in another spreadsheet.... I need a way to basically tell excel to keep rows that contain the numbers in 1 column on the list of 500, that correspond with those on the list of 300.
Numbers that are not found on the list of 300 ID numbers, must be deleted, along with the entire row.
I essentially need a macro that runs something like this that i found online, but instead of it just looking for the word "apple" as rows to delete, i would need it to check to see if the number is one of the 300 on my list.... and delete the row if it is not on the list
PHP Code:
Sub Delete_Rows()Dim rng As Range, cell As Range, del As RangeSet rng = Intersect(Range("A1:C20"), ActiveSheet.UsedRange)For Each cell In rngIf (cell.Value) = "Apple" _ThenIf del Is Nothing ThenSet del = cell Else: Set del = Union(del, cell)End IfEnd IfNext cellOn Error Resume Nextdel.EntireRow.DeleteEnd Sub
Is it possible to use the Combobox ListFillRange to list values from two groups of cells? For example, in column 'A', I have the values, 1,2,3; and in Column 'B', I have the values, A, B, C. I want to list the values in column 'A' along with the value of say, B, in Column 'B'.
combobox.listfillrange = "Sheet1!A1:A3" < ---- how to include value B from column B in this list? Or, how to get value A from column B?
I have an issue with being able to process my data i have a text file in notepad that lists a massive amount of values (enough for excel to process if they are listed down a column but not across a row) each separated by a space. As an example here is a small portion of the data.
I know how to import this as text but i can only wither get it all in one cell or across the 1st row. The first row can only display about 16000 values and that isn't enough for my end product to be accurate enough.
So is there any way to import the text file and have it formatted so a each new value has its own row? For example... 81768102 191193210 386225426 110858190 393958997 21773704
Or is there anyway to get the data from my already imported giant A1 cell into the above format?
Added an example of how it looks and how i want it to look. This is how it looks when i open the txt file containing my data in a way that all values stay in the excel sheet. As well as this there is an example of how i want it or rather need it to look.