Special Diagonal Sum
Feb 23, 2009Without VBA, how do I sum diagonals such as N2 and N3, but also like N7 where the values are limited to row 13? Hopefully, the post illustrates better than my words...
View 9 RepliesWithout VBA, how do I sum diagonals such as N2 and N3, but also like N7 where the values are limited to row 13? Hopefully, the post illustrates better than my words...
View 9 RepliesI am looking for a simple non ARRAY formula (OFFSET)? that will use range A1:E5 to create a new range which will include cells A1, B2, C3, D4, E5 (the diagonal). The sum of this formula would give: 30 ...
View 9 Replies View Relatedis there any easy way to take the sum of a really lond diagonal? I know i could use a macro, but I was wondering if there was a way to do it with formulas, the sums will ultimately be used for a graph,
View 9 Replies View RelatedI am stumped on coming up with a dynamic formula that calculates a value based on an increasing number of "sums of products". Specifically, I need to calculate the total number of repeat users based on a "decaying' repeat rate. In other words, I need it to calculate = Sum[... +(d5*f5)+(d4*g4)+(d3*h3)]
or in equation form:
where
n = (1, "infinity")
and
i = {1, 2, ... (n-1)}
with
"Xn" is the calculated value of repeat users for month "n" (output/result cell)
"mi" is the number of new users (in month i)
"Nn-i" is the column 'number' of the repeat rate value (%) multiplier
Here is a screenshot of the first couple rows to illustrate:
I actually have about 70 months of data (rows) and roughly the same amount of columns representing a decaying repeat rate (70 or so) and these will be increasing as time goes on so I need this formula to be dynamic (i.e. - copy it down the column of (# of repeat users)
I am using Excel for Mac 2011.
I have a table with changing length of the rows and columns. I need to calculate the sums of the rows, the columns ad the diagonal. I managed to write a working code for the columns, but have no success with the rest. Here is what I have:
View 4 Replies View RelatedDoes anyone know of a macro that can take values in a daigonal and put them in a single column?
Like for example... if you refer to the attached image, I basically would like to select all the diagonal values in red then put them all in a single column.
I am trying to get my formula to reference directly to the right of the look up value but it keeps returning the diagonal value that is located to the right and up one cell.
excel 1.jpg
excel 2.jpg
I have made a toggle button to turn diagonal borders on and off in a single cell. Is there a way to make the button transparent, such that the button can be placed over the cell itself and the contents of the cell will be visible underneath, no matter the condition of the toggle?
View 8 Replies View RelatedHow do I paste text from a column into a diagonal line of cells (i.e. A1, B2, C3, etc.)? Additionally (and this may be related), how do I get the cursor to move to a diagonal cell after an entry? (as opposed to down or to the side)
View 2 Replies View RelatedI have a table with data representing $income vs %Debt burden respectively. The data on the table per respective intersection provides number of accounts and total ($)value of accounts. I have tried to combine the two pieces of information into one column and have a diagonal line separating the two numbers. (sample table attached).
View 2 Replies View Relatedcopy content from particular cells in the current sheet to the next available row in another sheet. I need to Paste the Values as the cells I am copying are equations. It was working great until I tried using it again today. For some reason I get the following error:
Run-time error '1004':
Unable to get the Select property of the Worksheet class
Here is my code:
Code:
Sub CopyCampaignMetrics()
Range("A2:E2").Select
Selection.Copy
Sheets("Sheet2").Select("A" & Rows.Count).End(xlUp).Offset (1)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
How would the code be changed below to be Paste Special Value?
The numbers copied are changing every few seconds and I want a snapshot of it.
im TheRow As Integer
Sheets("Loader").Range("C5:AC5").Copy
TheRow = Sheet2.Range("A100").End(xlUp).Offset(1).Row
If TheRow < 6 Then TheRow = 6
Sheet2.Cells(TheRow, 3).PasteSpecial
If TheRow = 6 Then Range("B6").Value = 0 Else Cells(TheRow, 2) = Cells(TheRow - 1, 2) + 1 / 24
Cells(TheRow, 1).Value = Date
ActiveWorkbook.Save
LastSoon = Now + 1 / 24 '1 hr from last time
Application.OnTime LastSoon, "Capture" 'set up for next hour
I have the following in my Workbook
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'If you have any worksheet to exclude
If Sh.Name = "Sheet2" Then Exit Sub
With Target
If Len(.Value) Len(Trim(.Value)) Then
MsgBox "You just entered a leading space character in" & vbCrLf & _
" cell " & .Address(0, 0) & "." & vbCrLf & vbCrLf & _
"If you intend to delete the value in that or any cell, " & vbCrLf & _
"please press the Delete button on your keyboard.", 16, " No leading spaces allowed !!"
Application.EnableEvents = False
.Value = Trim(.Value)
Application.EnableEvents = True
End If
End With
End Sub
When I tried to Copy>Paste Special > Formats or Values of more than One row this line highlights
If Len(.Value) Len(Trim(.Value)) Then
That is, if I select C3:Q3, Copy, then select C10:C15 and try to do a Paste Special that is when it gives me an error 13: Type mismatch.
If I just select C10 and do the Paste Special, it's just fine.
I am trying to write a VBA code which will add any figure (say X) to the visible cells in the selected range. I am mentioning the visible part becuase my data might be filtered and thus. So far I have been able to figure out the following code(by recording a macro and then going behind the scenses to see the code):
Sub Add_X()
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlAdd, SkipBlanks:= _
False, Transpose:=False[/color]
End Sub
The problem is that how can (if possible) I can pass a parameter to the above code (which will be X; as explained above). There might be many possible solutions??? However one that comes to mind is that when I selected a range of cells and then run my code, a dialog box should pop-up and ask for a # and then then take that # to add it to the visible cells of the selected range.
Is there a way to only allow paste special values or formulas within a cell? People are coping and pasting and screwing up the formating
View 2 Replies View RelatedI got three columns in excel. Column A is a list of items, so is column C. Column B displays the similarity in the 2 lists.
I use the following command =IF(ISERROR(MATCH(A1,$C$1:$C$265,0)),"",A1).
SO:
A B C
Cat Fish
Dog Dog Roll
Bull Carpet
Apple Dog
But what I want to do is the following:
If I have "D-og 12 2-3" in column A and say "do g 1 22/3" in column C, I want it to be displayed in column B. To do that I need to decapitalise and remove all the special symbols such as space, ), (, *, &, ^, %, $, #, @,! etc.
So I get dog1223 in column B since they are the same.
How do I add special characters in-between text? I know how to include a registered sign by using =CHAR(174) but what I do not know is how to include text before and after the sign itself.
ie timeware *registered sign* community
I try to develop a special x-y graph with identical x-y-axes and straight lines representing constant values.
I try to add constant text D/E=0.25, D/E=0.5 etc. to the lines but I am not successful.
I have some simple Macro code that works fine for the COPY side of the action...
View 14 Replies View RelatedI have a macro that copies the main report sheet in my workbook. The point of the macro is to get a copy of the report data without allowing anyone to see the formulas/data behind it - when it pastes, it pastes only the values in the tables and then copies the charts, deletes the live ones, and pastes only the images back on the sheet. The macro works on my computer and my partner's computer, but not on anyone else's. It stops at this point:
View 5 Replies View RelatedI am trying to work out a simple ways of copying one table to another and pasting values apposed to formulas, which they currently are.
I have 2 named ranges. This being the code i have so far.
During the execution of some code I come to a point where the properties of a range of cells needs to be converted to numeric (is at that point text).
Normally I do that by adding a 1 in an cell nearby and use the copy/paste special method.
I was wondering if I can do that in a different way.
Is it possible to define a MultiplyFactor as 1, and use this in paste special part.
Something like: .....
I've got a sheet which has two column headings - Resources and Cost. I have another sheet which has the calculations for both of these. They are in cells H24 and D29 of the second sheet. I want to have a macro on the second sheet that if I click it, it will paste special these two figures (values only so no formulae), into the active cell on the first sheet. This is the code I've got so far but every time I run the macro it just pastes into the same two cells in the first sheet.
View 4 Replies View RelatedWorking in one workbook, I am using sheet 1 as a master form and copying it to the back of the workbook and renaming it.
View 3 Replies View Relatedjust had 11,000 customer account arrive and they are all messed up!
I am working through all the email address's and lots are not valid ones, is there a way i can make some sort of rule that willl do the following
If ther is no @ symbol, in Cells A ( any of A ) it drops them to the bottom of the list, or anything that just splits them up
Eg
fWGHFUI@JHEGF.COM
EFHWHEF@WEGFIW.COM
EKFGWIGF@YTRQUH.CO.UK
HJGIWEROPQWRP@WEYIO.COM
ASFHWIEGFIUQWEFH.COM
EHFIOQH12.CO.UK
This would split the bottom 2 email address away from the others as they dont have the @ symbol!
How this code is not working correctly. I want to count the number of cells with constants that are in sheet 2 column B and return this number to cell A3 in sheet 1 if and only if A2=A1 in sheet 1
Code:
Private Sub Test()
Dim x As Single, Tprim As Single, Tprim_ref As Single, Counter As Single
Tprim_ref = Cells(1, 1)
[Code].....
I am trying have the macro go from H7:H300 and if the value in the cell is "Grand" the I need it to border the top, right, and bottom. Not the left side and then keep going until all cells are checked.
View 1 Replies View RelatedI have the following macro and it keeps coming up with syntax error.
Sub CopyIt()
Dim LasteRow As Long
Dim LastaRow As Long
LastaRow = Sheets("Sheet2").Cells(Rows.Count, 1).End(xlUp).Row
LasteRow = Sheets("Sheet2").Cells(Rows.Count, 5).End(xlUp).Row
Application.ScreenUpdating = False
Sheets("Sheet2").Activate
Sheets("Sheet2").Range(Cells(2, 1), Cells(LastaRow, 1)).Copy
Sheets("Sheet1").Range("A2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Sheet2").Range(Cells(2, 5), Cells(LasteRow, 5)).Copy
Sheets("Sheet1").Range("B2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Sheets("Sheet1").Activate
Application.ScreenUpdating = True
End Sub
It happens when it comes to the paste special bit on book 1.
two formulas to search a range containing a unique 9 digit number which contain duplicates and then see if there are one of four values in another column.
Column A contains a unique SBI number(9 digits) and will be duplicated. In column E there are a possiblility of 4 other values which are read off a list. These are "Open", "In Progress", "On Hold" and "Closed.
SBI's Open
Need this formula to everytime it finds a unique SBI it goes to column E and count if any of the duplicate SBI's have Open", "In Progress", "On Hold" task and count it as an SBI which is still OPEN.
SBI's Closed
Need this formula to everytime it finds a SBI it goes to column E and count if any of the duplicate SBI's have only "Closed" tasks and count that.
There are duplicate SBI's because there are "Tasks which are listed under multiple SBI, so an SBI number can have 1 to ? tasks under it.
Want to basically count that all tasks under that SBI are closed if they are count it if not it's still open.
Have a formula to count the individual SBI already so maybe a only have the SBI closed formula and minus that count against the total SBI's to give the not closed SBI's ?
This formula is
=SUM(IF(A7:A2732="","",1/COUNTIF(A7:A2732,A7:A2732)))
If someone can tell me how without using a Pivot table as I have 260 spreadsheets which need this data and the pivot table takes too much memory.
I need to pull up the invoiced revenue by customer and month into Spreadsheet 1 from Spreadsheet 2, vlookup wont work and nested index and match wont work.
Spreadsheet1
Spreadsheet2