Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Please help me with this question.
let's assume I have selected a range (B5-B30) by mouse. I need a VBA code that selects exatly the same cells in another column (A5-A30) for me . I need to paste a certain text into (A5-A30) then.
Is there a VBA code that does this?
This will do it:
selection.offset(0,-3).select
Change -3 to how many columns, -1 is one to the left, 1 is 1 to the right.
You can change the 0 if you wish to move a number of rows too.
If you want to just paste without selecting, do this:
Selection.Offset(0, -3).PasteSpecial xlPasteAll
Change xlPasteAll to xlPasteValues if you want values rather than formulas.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
This is table data which is the source in SHEET 1.
I want to fill the data in other sheet SHEET 2.
like i want to copy the J of Cross in that location from SHEET 1
I tried using DGET function but it returns #VALUE!
Help me here
Put this in cell G4 -
=INDEX(Sheet1!A:K, MATCH(H4, Sheet1!$B:$B, 0), MATCH($G$2, Sheet1!$A$13:$K$13, 0))
You can do the same for other cells.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am working on a spreadsheet that is pulling a lot of data from Capital IQ (CIQ). I would like to hardcode all these formulas. If somebody that doesn't have the CIQ plugin tries to look at the spreadsheet, all they see is #name and #value. I don't want to hardcode all the cells since some of them are useful to see how they are linked to other tabs. I am looking to hardcode only the cells that contain a CIQ formula.
Thank you for your help!
Miha
Untested from mobile
Sub find()
Dim c as range
For each c in range(“A1:B100”).Cells
On Error Resume Next
If application.worksheetFunction. Search(c.value,”CIQ”) > 0 then c = c.value
Next c
End sub
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am after a clever combination of Excel formulas that will be able to produce what I have manually typed into the yellow highlighted boxes on the screenshot.
What I need to produce is essentially, for the range of months on the far right column, to count each instance of it and order each one starting with 1 and incrementing by 1 until it changes to the next month.
Screeshot example
I'm wondering if someone has in their brain a nice combination of nested formulas or something similar ready to go they could enlighten me with?
Much appreciated.
I used column A for the range of Months starting from row 1. In B1 put 1
In B2 put =COUNTIF($A$1:A1,A2)+1 and drag down.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have two different sheets in my work book. Sheet 1 and Sheet 2. I need to do vlookup between these two sheets (A column in both sheets) and if sheet 1 contains any element from Sheet 2, the the text "UG" should be updated in sheet 1 in "AE4" cell.
Is it possible in VBA?
Try the below and modify to fit you:
Cells(specify, specify).Formula = "=VLookup(RC20,Sheet1!R2C2:R273C22,17,FALSE)"
Change the relevant parameters in the VLOOKUP to suit you.
Use this to then figure out how to add an If statement
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to copy over some data from a set of merged cells into a single cell format. I don't know how to do this.
I'm trying to copy this:
This is what I get when I paste it:
This is what I want to happen when I paste it:
Since my merged cells "are" single cells, I wish they would paste like single cells. I haven't found a solution anywhere. I know that you can Special Paste values, but that doesn't keep the formatting that I need.
If you paste your selection, you'll notice a small blue icon at the bottom left of the pasted range. Click on it and select the third icon "Formulas & Number Formats":
This should do the job!