Cell Has Triangle Markings Where Formulas Exist
Sep 23, 2006I sent an excel file to a friend. When they opened the file a half triangle mark appears in any cell where there is a formula. How do i get rid of this mark?
View 3 RepliesI sent an excel file to a friend. When they opened the file a half triangle mark appears in any cell where there is a formula. How do i get rid of this mark?
View 3 RepliesIn the attached file, there are three sheets: Data and Private. Sheet Data contains data source. I want to try to covert the data in sheet Data into Private in triangle format.
For example, Sheet Data range A1:A5 will be converted into the latest diagonal in sheet Private range A1:E5.
Sheet data range D2:D5 will be converted into the second latest diagonal in sheet Private range A1:E5.
Sheet data range G3:G5 will be converted into the third latest diagonal in sheet Private range A1:E5.
Just follow the step, there will be a triangle range A1:E5 in Private. Same thing, there will be another triangle in Private.
During the past few years, I use an Offset/Row/Column formula to create a triangle. I feel code can do the same thing because the data structure follows a kind of pattern. I tried and failed.
Sheet1, there have data in A1 (100);
Sheet2, there have data in A1 (200) and A2 (300);
Sheet3, there have data in A1 (400), A2 (500), A3 (600);
Sheet4, there have data in A1(700), A2(800), A3(900) and A4(1000).
Now I want to use For Loop code to copy the data in Sheet1 through Sheet4 and paste them in Sheet 5 beginning with A1 into a triangle format:
100 300 600 1000
200 500 900
400 800
700
I have a 22x22 matrix with correlations; I want to extract the lower traingle as a single row; so my matrix is
# r1 r2 r3 r4 r5 etc
r1 1 0.5 0.3 0.7 etc
r2 0.5 1.0 0.5 etc
r3 0.3 0.5 1.0 etc
r4
r5
etc
I want my row to be
r11 r12 r13 r14...r1-22 r21 r23 r24 etc..
I need to write a spread sheet that will calculate the length of 2 unknown sides of a right triangle using the following information.
Here is what I know
1. I have a right triangle
2. I know the length of the hypotenuses
3. I know the ratio between the length of the other 2 sides
I need to write and Excel file that will solve for the length of the other two sides
The math look like a^2+b^2=c^2
with c being known and the ratio between a and b known
I have a matrix that calculate lenght of the sides in a triangle, this is for the purpose of a camera and the pixelsize/inchsize.
Is it possible to create a chart that will give the user an visual control on how the cameras detection area looks like?
How to plot circles via vb. Basically I would like to plot circles on the vertices of a triangle with the following data.
1) length a = 69, b=103, c=119.9967, angle between a and b =86.1. (These values are determined from the cosine rule)
2) Diameter D1=40,D2=98, D3=108
See link of circles : IMAG0176.jpg
I would like to know if it is possible to use a wilcard in an IF/THEN statement. For example, in Cell A1 I have 1234, in Cell A2 I have 9934, in Cell A3 I have 8346659. I want to build an IF/THEN statement in Cells B1, B2 and B3 whereby it looks at cells A1, A2 and A3 appropriately and where ever it finds a "34" anywhere in the cell it gives me a "YES" or "NO" reply.
View 3 Replies View RelatedI have text in Q2:Q30 this text is spread out in N2:N500
then i have Numbers in K2:K500
what i would like to do is to
find Q2 in N2:N500 (can be there many times) and add numbers from K2:K500 where found into R2
example Q2 is Denmark
I have Denmark in N40, N60, N490
Now in R2 i would like to add K40 + K60 + K490
i have started with this
=IF(ISNUMBER(MATCH(Q2,$N$2:$N$500,0)),SUM but now i`m stuck
I do have a problem with my excel sheet. i have a workbook with 2 sheet which i need to compare a colume of data from sheet1 with sheet 2 colume M2. If it is matched, then sheet 2 colume BJ2 will return a "F" else "N"
So i was thinking of using an If formulae: =IF(M2=sheet1!A2:A16),"F","N") but somehow the above text return a msg of "A16" is invalid. and i tried to used VLOOKUP by defining the mapping sheet as "KEY"
=VLOOKUP(M2,KEY,A2)
and i copy and paste the above formulae to the remaining column M for comparison. Somehow, this did not work as well.
I am using a lot of linked reports that have to be rewritten each month. For example smaller formulas look like this:
=('S:PUBLICProductionJob CardsMOLDING201311 November[440A SIDE SPOILER JOB CARD.xls]Production Parts'!B$228*2)+'S:PUBLICProductionJob CardsMOLDING201311 November[440A SIDE SPOILER JOB CARD.xls]Production Parts'!B$262+'S:PUBLICProductionJob CardsMOLDING201311 November[440A SIDE SPOILER JOB CARD.xls]Production Parts'!B$292
What I want to do is extract the file path from the above formula and make it a composite of several cell references.
So what I need is to have a cell where they can change the month and another where we can change the year. So I set up several named cells that look like this:
_MONTH =11 November
_YEAR =2013
_JOBCARD ='S:PUBLICProductionJob CardsMOLDING
_PATH =_JOBCARD & _YEAR &"" &_MONTH
I tried several versions, I am hoping for something like this:
=('_PATH &"[440A SIDE SPOILER JOB CARD.xls]"Production Parts'!B$228*2)+'_PATH &"[440A SIDE SPOILER JOB CARD.xls]"Production Parts'!B$262+'_PATH &"[440A SIDE SPOILER JOB CARD.xls]"Production Parts'!B$292
When I use the formula:
View 12 Replies View RelatedI need help to this : When i type a number to a cell and press enter , i want to check if this number exist in a range of cells (in sheet 2) , and if exists , excel show me a message. Actually i use it for my *** club. Number is the client code. When i writte 50 in a cell , i need from excel to check if this client own me money , and show me some message..
View 8 Replies View RelatedI have a workbook with two sheets. The first sheet is the data sheet.
Data Worksheet
A B C D colA colA,B colA,B,C colA,B,C,D
104 20 21 CR10600S 104 10420 1042021 1042021DUS
104 20 21 CR10600SX 104 10420 1042021 1042021DUS
104 20 21 CR10603S 104 10420 1042021 1042021DUS
104 20 21 CR10603SX 104 10420 1042021 1042021DUS
104 20 22 CR49605S 104 10420 1042022 1042022HKZ
104 20 22 CR49605SX 104 10420 1042022 1042022HKZ
104 20 23 CR39601P 104 10420 1042023 1042023SPR
The next sheet is where the magic happens. Separate this worksheet into two sections. The reference section (column A and B) and the entry section (column E-G). Column D is a formula that will concatenate column E-G together. In the entry section any number of combinations can be entered. In the reference section I need to take the style number and reference it back to the data sheet. Then take the possible combinations from that style (column E and greater) and see if any of those combinations exist on the other sheet in column D. If so then say added....otherwise say needed.
"....In Pricing Sheet" is where I am looking to put needed or added or something like it.
A B C D E F G
STYLE …IN PRICING SHEET Concat DEPT MCL SCL STYLE
CR10600S Added 1042021 104 20 21
CR10600SX Added 1042022 104 20 22
CR10603S Added
CR10603SX Added
CR49605S Added
CR49605SX Added
CR39601P Needed
Any ideas on how to do this in formulas and without code? I have tried and looked into index, match, dget and lookup. I just don't think I am finding the right combination of formulas.
I've found a few macros that will automate changing cell references from absolute to relative and they work great. However, when I run the macros on formulas that have references to another worksheet or workbook, the macro will not work correctly.
View 9 Replies View RelatedI'm trying to automate creating certain keyword combinations I need, based off of the values I input into reference cells in columns A - E; the goal is to compile a list of keywords which I will then use to track my rankings in search engines.
I'm looking to only output 500 keywords, so some of the cells in columns A, B, C & E will not contain data (column D will always have a primary Geo-target listed). This results in some of the concatenate formulas I've created outputting partial data (i.e. if there is no data in cell A10, and cell D2 contains the word "Knoxville", then cell I10 will output the data, "Knoxville "). How can I setup conditioning formatting or a formula so that these auto-generated cells appear blank if one of the reference cells has no data within it?The reason why I need the above to work is because I want to setup a formula that automatically counts the # of keyword combinations created by the data entered into any of the reference cells. With the partial combinations being listed, it skews my data. Which leads me to my next question: what is the best formula for counting the # of cells containing a full keyword combination from any of the cells listed in columns G - O (minus the data in the header cells; i.e. G1, H1, etc...)?Lastly, is there a formula I could use that would then aggregate all of the full keyword combinations within the "Complete Keyword List" column (column P)?
How can I use VBA in Excel to determine if a file with a known name exists in a known directory?
View 3 Replies View RelatedI run a workbook an I want to save it by it's date. In Simple word :
If the workbook did'nt exist save it, or it's already exist.
Sub SaveWorkbook()
Dim strFile As String
Dim FileName As String
Dim year As String
FileName = "Sales"
year = Sheets("Values"). Range("G2").Value
strFile = FileName & year ' For Example: Sales2007
ChDir "C:Sales"
If Dir(strFile) = "" Then
ActiveWorkbook.SaveAs FileName:=strFile, FileFormat:=xlNormal
Else
' Don't Accept saving and exit sub.
MsgBox "File already exist " & strFile, vbInformation
Exit Sub
End If
End Sub
I am running Excel 2007 on Windows Vista Business 32 bit. Recently I have noticed that if I enter a formula into an empty, unsused cell, it is recognized as a formula. If I modify that formula, it is then recognized as text and does not work as a formula. The only way I can get the cell to recognize a formula is to delete the cell and start over. This same scenario does not occur on previously stored workbooks. I have checked all of the flags that I know about, including the Options function.
View 3 Replies View RelatedI have a macro running this code to strip out unwanted formulas and formatting.
Sub Quote_Wrapup()
'To stop screen flicker
Application.ScreenUpdating = False
Range("CDandC").ClearContents
Range("qdata5,qdata6").Font.ColorIndex = 2
'To delete delivery address lines if 1st line empty
If IsEmpty(Range("deliver_line1")) _
Then Sheets(1).Range("deliver_rows").EntireRow.Delete
'No End If required as only one action as a result of the If
Range("Item_Nos").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Columns("A:E") = Columns("A:E").Value .........................
A spreadsheet based on my template has been sent to me because the macro won't run properly. When I try to run the macro I get a Runtime Error '1004' Method 'Range' of object '_Global' failed on the following line. Columns("A:E") = Columns("A:E").Value.
I have two sheets containing data, Sheet 1 and Sheet 2. Sheet 1 contains columns A-P, while sheet 2 only contains columns A-K.
Some of the records listed in Sheet 2 are already in Sheet 1 with more complete data, but there are some records not in Sheet 1 and the only information available for these records is in Sheet 2.
I am looking for a macro that will compare columns A in Sheet 1 and Sheet 2 and for any records found in Sheet 2 but not sheet one, the entire row A-K of Sheet 2 will be added to Sheet 1.
In a module I have the following code. When I call sub Test1 I get a runtime error 1004, although the workbook 'database1' does exists in the same path.
VB:
Option Explicit
Public Const DBname1 = "database1.xls"
Public myPath As String
[Code]....
I have a workbook with 2 sheets of data. I'm having trouble coming up with a code that can check if a row from sheet 2 does not exist on sheet 1, and if not, copy that row from sheet 2 and insert it into sheet 1 (preferable on the fist blank row).
It should check 4 specific columns on sheet 2, and if sheet 1 doesn't contain a row with the same data in those same 4 columns than the entire row should be inserted into sheet 1.
For example lets say row 4 of sheet 2 contains the values "Blue" in column D, "Green" in column E, "Yellow" in column H, and "Purple" in column I. If sheet 1 does not contain a row (any row, not just row 4) with those same 4 values in those same columns, then the entire row from sheet 2 should be inserted into the first empty row in sheet 1.
I want to sume numbers that may or may not be in several cells. If I use the function SUM and one of them is missing, I get an error.
Example:
A1=2
A2="empty"
A3=5
I want the sum of A1+A2+A3 to be 5
It checks to see if DataImport2, 3 and 4 exist and then executes code.
Currently DataImport4 does not exist so it should not execute anycode but for some reason the code is still trying to execute it and select Sheets("DataImport4").Select
Does msoSortOrder exist under VBA in Excel 2007?
View 2 Replies View RelatedI'm wondering how I can unlist listed objects if a list or lists exist on a sheet.
I tried the following , but it doesn't work.
I am really new to using Excel macros and having an issue trying to insert data in a column where the data may or may not already exist. In Column A I have a list of product lines.
Prodline1
Prodline2
Prodline3
Prodline4
Prodline5
I want to search through this list and if Prodline1 does not exist, then add a Prodline1 row to the end of the list, then check for Prodline2, Prodline3 etc and do the same. On any given month I may or may not have data for the Prodline but I still need to see it in my list. I've tried this code below but only get data if I define an actual cell and it only works for the first one.
Set R = ActiveSheet.Range("A1")
endrange = Range("A65000").End(xlUp).Row
For i = 1 To endrange
[Code]....
I have a code which checks if the a worksheet exists, and if not it will add it, but I need to do this for two different sheets and I am stock.
Code:
Sub check()
Dim sh$
On Error Resume Next
sh = Sheets("Quarterly").Name
On Error GoTo 0
If sh "" Then
Sheets(sh).Activate
Else
Worksheets.Add.Name = "Quarterly"
End If
End Sub
Is there a way to check to see if there are any .xls files, open or closed, in a given directory?
View 9 Replies View Related