i am trying to finish a spreadsheet off using cos functions. I want to convert 26 degrees into 0.8988. when i use my hand calculator i type 26 in then press cos and it converts it to 0.8988 which is correct, but when i try to use the excel cos function it gives 0.646919322 which is in-correct.
Need to convert decimal degrees into degrees, minutes, & seconds (displayed in three columns). Currently calculated manually from ATAN, ASIN, or ACOS functions.
I had a similar problem a day or two ago in converting Deg Min.dec to Deg.dec and it has happened again. This time I want to convert Degrees Minutes & Seconds to Degrees.decimals.
The formula I am using works for a two digit number Lat. but not 3 Long.?? Here it is below:
I am trying to convert Degrees Minutes & Decimals of a minute (12° 34.567') to Degrees and decimals of a degree (12.57611°). I have the formula to convert latitude, that is two digits, but it doesn't want to work with longitudes, three digits. (see attachment). This is the formula that I am using:
Need to convert decimal degrees into degrees, minutes, & seconds (displayed in three columns). Currently calculated manually from ATAN, ASIN, or ACOS functions.
I've writing excel formulas to convert Decimal Degrees (DD) to Degrees Minutes and Seconds (DMS) and back again for astronomy. These are for converting DD angles for telescope Right Ascension (RA) and Declination Angles (DEC) pointing.
I've got the formulas to work except for one minor annoyance. Try this formula for converting DEC DD angle of -1.5° to a DEC DMS angle: ....
I am looking for a conditional formula that can be applied to a cell so that when I enter a number with a positive value, it:
1) Converts it to its negative equivalent value. 2) Displays in the value in the cell with parentheses around the number to indicate that the value is negative.
I am trying to do this without having to reference another cell to provide the entry or display the outcome.
Iv got Column A with angles between 0 and 1.56 radians. These angles are generated randomly, so it can be 0.22, 0.56,1.55 etc etc...Now in column B Iv got to carry out a function. The function is =43.22/COS(AX) X depends on the corresponding value in column A.
Every thing is fine up to here and I can do it...BUT I only need to carry out the function if the angle in Column A is smaller than 1...And if the value is bigger than 1 it only needs to output a value of 80. Thats it so...depending on the value in column A it will either carry out =43.22/COS(A) OR just make it show =80.
I have a spreadsheet that is so long ie columns that i have decided to flip it over so that my old row titles are now column headings and my column heading are now row titles.
The reason for this is that I need to enter more that 256 columns into my worksheet matrix and I only have 209 rows thus light bulb moment turned the whole spreasheet 90 degrees within the worksheet!
How do I custom format a cell to display degrees minutes seconds. I now there is a way. I found in on the web once but can not find it again. The formating from cpearson does not work the way i want.
For example if in cell a1 I input 50.2536, I want to to format the cell as 50° 25' 36". opefully this can be applished without any formulas. Either soem code or formating would be great. The last time I found it I thought it was something like ###° ??'/??" but that did not work. Thanks in advance. The reason I need it, is to use the convert_decimal function I found on the microsoft website.
I have a label in a userform which is picking up data from sheet1.range("a1") and i would like it to show along the left side of the userform so rotated at 90 degrees.
I do not have to use a label but I do need the data to be shown at 90 degrees.
The problem I am having is in trying to make a custom cell format for inputting my data. I want it to appear as 44° 41' 5" (in the same cell). I would like the cell to function so that if im inputting data manually for it to automatically put in the appropriate (degree,minute or second marks). That way I could just enter somthing like 44 41 5 and it display properly. Also I am trying to keep the data in text format for another marco I am running to convert the DMS data into decimal.
I've got a long formula here. If the resulting expression is equal to "0-0" I want it to go blank as if it was an error, and if it isn't, I want it to show the resulting expression as normal.
I'm trying to account for the date and have it change if the original falls on a weekend. I wrote it using the Weekday function, which I believe is a worksheet function and not a VBA one, as I keep getting a run-time error 5 (invalid procedure, call, or argument). Either that or I have something programmed wrong in it.
I have 4 lengths in four columns in a random order, and need to compare them to see whether they are equal lengths.
I Have figured out how to order them so I can compare them, but can't think of a formula to show whether they are equivilent (eg 1000m = 1km) True or False outcome is fine.
I need a loop function (i guess a do while or do until code) so whenever the word 'Non-Current' appears in colum A enter a 1 in colum E until the word 'Total Non-C' is reached at which point the loop must end. Such as: A B C D E NON-CURRENT 6 4 5 1* ABSA 4 5 2 1* BARCLAYS 3 2 8 1* NED 0 8 6 1* TOTAL NON-C 4 6 7 0
I've been learnig VB applying it to automating some excel workbooks. What I'd like to know is if there's an equivalent funtion in VB to the IN function in Pascal. The In function in Pascal used to work like this:
If I used the KeyPress (Function in Pascal), I could evaluate which key was pressed and compare it to an array of options. For Example:
HTML Code: if Chr(KeyPressed) IN ["0".."9",".","+","-","*","/"] then
Expression = Expression + Chr(KeyPressed)
Instead of Comparing each option separadtly. Now my question is whether or not there's an equivalent function in VB.
When I tried len(nYear) where nYear is a number like 2006, I don't get the number of characters in the number. I know that's confusing strings with numbers, but...
Is there a VBA function that returns the number of numbers deep in an integer; ex. if nYear = 2006, the function would return 4?
I could easily do a < or > line of code, but I'm just curious if there's another way to do it.
I have a worksheet (named Deduction Worksheet) that is a running record of all part removals. A removal is denoted by a row entry that contains removal particulars. The first column (Column A) in each row contains a unique number for each part. Column K shows how many part units were removed in that removal:
Column A ... Columns ... B to J ... Column K Unq001 various
[Code]....
In the code above 'crng' is the criteria range, 'sValue' the criteria and 'srng' the sum range (which follows the normal SUMIF function within a worksheet). Both the 'crng" and 'sValue' values contain text, / and numbers.
note that other elements on the userform code look at data on other worksheets (not sure if this will effect this).
I've searched the boards & haven't found anything as uncomplicated as what I'm looking for. I know I could use Sumproduct, but for something this simple is there anything I can do with Sumif? This in effect is my worksheet. AB 1AD200=SUMIF('Sheet2’!B:B, A1, 'Sheet2’!C:C)
All I want to do is change the criteria to be the equivalent of A1 OR B2 (ie checking the range for either match. No way to do that in a sumif? I'm looking for the least complicated, easiest to adjust/edit formula possible.