I've got some data that I need to write into database which is listed in Excel. For each row I want to do something like this: Let's say we are in 7th row INSERT INTO someTable(colA, colB) values(A7, B7) where colC='C7' (I want to have it in next cell and then copy it to SQL Management Studio)
I have a master data sheet with four columns, A, B, C and D
Column A has the primary data and B,C,D has dependent data values;
So when I insert a new cell in Column A with cells Shift Down, I want mandatorily new cells to be inserted in the same row in col B, C and D as well so that data integrity is maintained;
There's got to be a way to do this (mail merge style perhaps...) I would like to insert the entry/ies under a heading in a table in one worksheet whenever that heading matches the data entered in a separate worksheet.
I have a file name typed into cell C3. I want the formula in cell C4 (C5,C6,C7......) to include the name of the file typed into cell C3. The formula in cell C5 shows what the content should look like.
I want the users to be able to type the file name in Row 3 (C3,D3,E3.......) and have the formulas below them insert the file name and access the information from the files (yes the files can/will be open when we do this).
I need to to have at least twenty different formulas (rows) referencing specific cells in these files.
The formulas would look like this ='["File name from C3"]Audit Information'!$D$35.
I am hoping it may only be a syntax thing and someone here can "show me the way" I have tried &$C$3& with and without quotations with no luck.
I am trying to build a vba macro that will do a few things.
1. Cut the text from the row I am working on in column A before the word "ACTION:" 2. Insert the text cut from that row into Column B. Now, the same row in column B will probably already have text in it I want to keep. So the macro needs to insert a line to push the old text down a line and then insert the cut text. 3. Make the older text's font in that row smaller, like size 5. 4. Back in column A insert today's date and leave the cursor there to begin typing notes for today.
I also need the text starting at the word "ACTION:" to remain bold.
How to insert the text into B. I know this just copies over it.
Code: Sub CopySubstring() Dim Numchars As Long, s As String Numchars = InStr(1, Range("A1"), "ACTION:", vbTextCompare) If Numchars 0 Then cText = Left(Range("A1"), Numchars - 1) Range("B1").Value = cText
End If End Sub
I have a same spreadsheet that shows a sample with the expected outcome after the macro is run here: [URL] ........
I have a macro that inserts a sum at F27 (I also have sums at G27 & H27) prints the worksheet and then after printing clears the contents of F27.
If I was to add in a row and then run this macro of course the sum appears at F27 and my other two sums at now G28 & H28.
My question is there a way that when the "F27" sum is inserted it is somehow tied to the position of the G27 & H27 cells so that all 3 sums will be on the same row.
I'm trying to insert the following formula into cell AA11. For some reason I keep getting a 1004 Runtime Error. I'm assuming there is some type of syntax error. I'm not really sure what I'm doing wrong.
What I would like to do is to insert the text "Agent" into the empty cell A# immediately above the block of names if "Agent" isn't already there. I'm having trouble with the syntax... The cell A# won't always be the same as the position of the block of names varies. In this case it's A9.
I have list of URL's (5000+) per country which need to be check whether they are working or broken. I have found this website http://www.seoconsultants.com/tools/headers.asp which solves my purpose but processing 5000+ URL's manually will consume lot of time
So is it possible to have macro which will pick URL from each cell & run it in "URI:" textbox of the above link.
I am currently creating a formula/function to insert a value in once cell into many cells using excel 2003 , for example: cell A1 has a value 100 000 000, and the value is going to be inserted, into B1,C1,D1,E1,F1,G1,H1,I1,J1.Each cell will only have one digit only so B1 will have 1, C1 will have 0, D1 will have 0 and for the rest of the cell will have the same thing instead of whole value.I tried this thing with the MID function and it works as long as the source value cell is 9 digits(filling the cell from the B1toJ1), it became my concern when I changed those value less then 9 digits,say 8 or 5 digits where the cell will receive the value are B1 to F1 if 5 digits or B1 to I1 if 8 digits, the rest of the cells are blank.
Are there any possibilities, solutions if the inserted value can be started from C1 to J1 for 8 digits or F1 to J1 for 5 digits etc (less than 9 digits) instead of B1 to I1 (8 digits) or B1 to F1 for 5 digits?
I have some data generated from same sample as listed below:
A: Amplitude
Time Time(hours) Y (A1) SD (A1) Y (A2) SD (A2) Y (A3) SD (A3) 3.97 95.28 0.01 0.00 0.01 0.00 0.01 0.00 3.98 95.53 0.01 0.00 0.01 0.00 0.01 0.00 3.99 95.78 0.01 0.00 0.01 0.00 0.01 0.00
B: Beat
Time Time(hours) Y (A1) SD (A1) Y (A2) SD (A2) Y (A3) SD (A3) 3.97 95.28 1.00 0.00 0.01 0.00 0.01 0.00 3.98 95.53 2.00 0.00 0.01 0.00 0.01 0.00 3.99 95.78 3.00 0.00 0.01 0.00 0.01 0.00
Is there any easy macro to combine data under A and B. For example:cut A1 data under B:Beat and insert it after A1 under A:Amplitude; cut A2 data under B:Beat and insert it after A2 under A:Amplitude, et al?