Checking Cell Values And Position On A Row And Setting Summary Value In Another Cell
Apr 8, 2014
I have a tracking sheet that is used to show where a specific project is within the lifecycle and would like to automatically set a summary value depending on the last data entry within a range of cells in a row and also set it to RAG status depending on the value.....
View 2 Replies
ADVERTISEMENT
Mar 30, 2009
I have a spreadsheet with two columns and 39900 rows, from that data I want to create two new columns so cell C1 = A143 and D1 = B143, C2=A286, D1=B286, and so on. The row location increases by 143.
The simplest thing I tried to do was to say C1=A1+142, but (knowing it is wrong) I get a #value error.
How can I tell excel to grab these values located every 144 rows below and create two new columns?
View 9 Replies
View Related
Oct 9, 2008
I have a spreadsheet with 2 columns of values. I need to check that the two columns have the same values, however the last digit of the values will differ every time, in the first column the value will always be a 3 and in the 2nd column it will always be a 0. Unfortunately the amount of digits before the last, differs from 6 to 9 so its not as easy to do a trim. Example
Column 1 Column 2
11111113 11111110
222222223 222222220
4444444443 4444444440
I need to check that the first digits (no mater how many) are all the same except the last digit.
View 3 Replies
View Related
Nov 12, 2013
I'm trying to validate the data entered into a series of cells each cell can contain a different set of data but the value N/A is also permitted. For example:
Cell A1 could contain a date from 2013-01-01 thru 2013-12-01 but the value N/A is also valid
Cell A2 could contain a decimal from 0.01 thru 302502.23 but the value N/A is also valid
Cell A3 could contain an integer from 3 thru to 9000 but the value N/A is also valid
When the acceptable values are entered then I want to be able to carry on otherwise I want to pop up with an error.
View 10 Replies
View Related
Jul 15, 2014
the following two statements return the error "Application-defined or object-defined error"
Code:
Sheets("Purchase").Range("PurchaseTax").FormulaR1C1 = "=IF(RC[-1]0,ROUND(RC[-1]/11,2),"")"
Sheets("Purchase").Range("FreightTax").Formula = "=IF(FreightCharge0,ROUND(FreightCharge/11,2),"")"
View 2 Replies
View Related
Jan 7, 2009
Is it possible to position a predetermined cell (e.g. A42) in the top left corner of the screen. (Not every screen users use has the same size)
View 3 Replies
View Related
Jan 29, 2014
I need to make a cell display the contents of the cell immediately below it, regardless of if there are rows inserted at the referenced row or above or below it on the worksheet. ALSO I need to do this at several additional cell locations down the worksheet. Such as : A1 displays A2, A4 displays A5, A7 displays A8 etc.
Example: I want A1 to display whatever is in the cell immediately below it. In this case A2. I need to be able to insert several rows at row 2 and have whatever new value is now in the A2 position displayed in A1.
After the rows are inserted I need the cell that was in position A4 to continue to display the contents of the cell below it.
I tried using the formula in A1 of: =INDIRECT("A2") and it works good except when I insert the rows my similar formulas below the area where the rows were inserted continue to refer to the specific original cell and not the one positioned now below it.
View 3 Replies
View Related
Nov 11, 2008
I require a macro to enable a selected shape to be moved from current cell location to relative position but 1 row up. eg topleft address = A4 and shift shape to topleft address = A3
View 5 Replies
View Related
Feb 28, 2007
Problem Designing "new customer" form, a textbox(forename) in the
form has the Control source of "B3" (an empty space in my Customer
database). When the form is run and the forname is typed in the box, it
fair enough appears in the Database sheet (in B3).
However, then when opening the form again and typing over the forename
just inserted it will ofcourse overwrite it (B3 is replaced). Any ideas how i can input
code into the sub linked to the textbox so that it checks the control
source and moves down if the source is empty(code checks B3 for text, moves to B4) then the next one (B4 is checked, moved to B5).
Dim topCel As Range, bottomCel As Range, _
sourceRange As Range, targetRange As Range
Set topCel = Range("B2")
Set bottomCel = Range("B65536").End(xlUp)
If topCel.Row > bottomCel.Row Then End
Set sourceRange = Range(topCel, bottomCel)
Set targetRange = Range("B3")
View 9 Replies
View Related
Jan 23, 2009
Right now cell B7 is referencing cell D3. However I want this to be dynamic in the sense that suppose I change the Phase 2 (which starts from ww3 (cell D3)) to ww5 (cell F3) then I would like that B7 should also get updated to F3 instead of D3.
Basically the Development phase of "Support" Project starts only when Phase 2 of "Project 1" starts.
ww = Work Week.
In short cell B7 should always be in sync with the ww of Phase 2 of Project 1.
View 3 Replies
View Related
Feb 4, 2014
Basically it works out peoples hours
standard hours
overtime 1
overtime 2
because there is quite a lot of coding going on i was just wondering is there a simple bit just to add into each code that will keep the cell 0 until something is added into a different cell.
e.g
A1 = 00:00
A2 = 00:00
because of the formula A3 = 16.5
i need A3 to say 0 whilst A1 and A2 are at 00:00.
the Formula for A1+A2+A3 is perfect when something is entered into A1 and A2
View 7 Replies
View Related
Nov 28, 2011
Programmatically speaking, any way of checking whether an arbitrary cell is part of a named range (that is, short of looping through an entire book's named ranges checking for intersections)? (It can be assumed that all the named ranges consist only of one cell).
View 6 Replies
View Related
Oct 3, 2013
I am trying to check the cells in column C for a defined set of rows and if it is blank change it to astericks.
Current is the row selected when the macro begins
LastRow is the last row with data (in column A)
For i = Current To LastRow
If Range("C" & i).Value = "" Then Range("C" & i).Value = "***"
Next i
View 6 Replies
View Related
Oct 16, 2013
I am using VBA to indent the values in a range of cells.
However, I would like my code to check if the label has already been indented, to prevent it from being indented further.
View 5 Replies
View Related
Aug 6, 2006
I want to run some macros based on the value of an input cell, but only if the input is a number (ie. it is not a letter or other character).
View 6 Replies
View Related
Apr 11, 2007
Is there any way through VBA that I can check whether the date in cell A2 is Monday or not.
Also the code should allow me to continue if its Monday else should promt a message saying that its not Monday and whether the user still wants to continue. If no it should terminate if yes the next part of the code should continue.
View 9 Replies
View Related
Mar 27, 2009
I have a cell in Excel having a boolean value and want to use a macro to check if it is true. Something like this:
View 3 Replies
View Related
Sep 29, 2006
I want to reformat some data, arranged as follows, and ignore blank cells
Date1 Time1 blank Time2
Date2 blank Time3
to
Date1 Time2
Date1 Time2
Date2 Time3
Code being used, currently writes out lines where a Date exists, but Time cell is blank, what do I need to modify in the code below, to ensure blank times are not written out
Sub test()
counter = 2
For i = 1 To Range("A65536").End(xlUp).Row
For j = 2 To Cells(i, 256).End(xlToLeft).Column
Sheets("Sheet2").Cells(counter, 1).Value = Cells(i, 1).Value
Sheets("Sheet2").Cells(counter, 2).Value = Cells(i, j).Value
counter = counter + 1
Next j
Next i
End Sub
View 3 Replies
View Related
Sep 25, 2008
How to know the position of third comma in the same cell.
View 14 Replies
View Related
Oct 9, 2013
have an assignment to complete and one of the tasks I found impossible to complete. First condition is that it should be completed with a formula (not VBA). So here is the task - I have different cells with IBAN codes in them. The 14th position in the IBAN is used to identify the currency of the account. There are 3 possible numbers - 0, 1 and 2 and each is for different currency. So I have this table where I need to lookup the 14th character in the cell with the IBAN, from there the formula needs not only to check what the number is (0,1 or 2) but also to compare it to another table from where to decide which is the currency. I tried various combinations with FIND/SEARCH but can't find a way to do it.. and I can't find other functions/formulas that can isolate a particular character position in a cell..
View 3 Replies
View Related
Jul 29, 2014
I am trying to build a user form to find out the customers who purchase more than $1,000 during a certain period. The userform has two inputs:
One is to select the data range of customer information. Assume all customer information are in the cell A2: H10, how shall I write the error checking code if the user selects the range which is out of (A2:H10)? message box would be " You selection include invalid data, please check"..
The other input is called " Get data past this data", and I can enter a date in the following cell ( txtDate). Regarding the error checking, I am thinking to use IsDate() function to make sure it is a valid date. Will be there be any other error checking you will recommend?
View 1 Replies
View Related
Mar 23, 2009
I have a master sheet that has 3500ish names on it, and another sheet that I'll need to drop in a list of about 1000 names. What I need on the master is a way to check the dropped in data, find duplicated names, and flag them up.
Now, I believe what I did last time was have a true/false method of telling me if they're on both sheets, then use an IF formula to instead make Trues into "yes" and Falses into "no". However, I can't for the life of me figure out how I had it previously checking both sheets and confirming/denying if they're on both sheets or only appear once.
View 2 Replies
View Related
Mar 6, 2009
i have a problem counting the number of characters in each cell in column "A" in a sheet and checking if number of characters in a cell exceeds 5 characters.
View 10 Replies
View Related
Mar 6, 2009
i have a problem counting the number of characters in each cell in column "A" in a sheet and checking if number of characters in a cell exceeds 5 characters.
View 8 Replies
View Related
Mar 21, 2014
Is there a way of checking for duplicates in a range of cells using one cell only for the code? Return does not have to include what value is a duplicate - only true or false. This opposed to using multiple cell and COUNTIF or a pivot table.
View 5 Replies
View Related
Jun 2, 2008
i don`t know how to make this in VBA
But please allow me to explain, if I have numbers in Cell F9 I want image to be displayed as (X <---- which it means wrong) on G9 and message to be appear in H9 says only words are allowed. In case, cell value are words; I want it to show image <---- which it means right) and the message to be say correct. And if cell is empty I want it to show image (!) and the cell beside it the message should say (Please Fill up).
I want to apply this to words instead of numbers as well.
View 4 Replies
View Related
Aug 2, 2008
I have a report that includes data broken up by several headings. Instead of showing the heading and the data below it, I would prefer that the heading was included in every subsequent row that it related to (and the heading be removed).
All the headings are in italic non bold format.
All the data is in standard format (no bold / italics / underline).
The only data in the sheet is as above, and there are no gaps in the data. A heading will relate to all the data directly below it until there is a new heading.
View 8 Replies
View Related
Jan 9, 2013
I have in the first column something like this:
GLOBAL DESCRIPTION
GLOBAL DESCRIPTION1 Particular description1
GLOBAL DESCRIPTION1 Particular description2
GLOBAL DESCRIPTION2
GLOBAL DESCRIPTION2 Particular description1
GLOBAL DESCRIPTION2 Particular description2
I want to to have in the second column:
GLOBAL DESCRIPTION1
Particular description1
Particular description2
GLOBAL DESCRIPTION2
Particular description1
Particular description2
So far I have this: +IF(EXACT(A1;UPPERCASE(A1));A1;+RIGHT(A1;LEN(A1)-(FIND(X;A1;1)-1)))
X standing for the position of the first lowercase, which I don't know how to get.
View 9 Replies
View Related
Jul 26, 2009
I once used a Function to Measure the distance of the lefthand side of the active cell to right of the screen.
But now I can find it anywhere.
can anybody remember the function Name?
View 8 Replies
View Related
Jul 8, 2008
I'm trying to find the details required to refer to contents of a cell and then treat the value as the formula. IE for Sum(B5:B8), i'd like to have two cells, one with a 5 in it and one with the 8.
I know its possible if i put "b5" as the cell content using indirect - but I'll be using the same cell value to update formulas in different columns so I cant afford to include the B. I assume theres a very simple method along the lines of Sum((B&(Cell(a4)):B&(Cell(a5)))?
View 9 Replies
View Related