with a formula that would find a text data point (comma) and round the number to 2 decimal places that is located prior to the text data point (comma) within a string of data. see examples below in Column A and the intended results in Column B.
Column A
row 1: Joe 1.234, Al 6.89656,
row 2: Sam 6.5,
formula that would find a text data point (comma) and round the number to 2 decimal places that is located prior to the text data point (comma) within a string of data.
see examples below in Column A and the intended results in Column B.
I'm trying to write a statement something like: B1 = data. B2=IF(B1/8=0,"",IF(B1/8=INTEGER,B1/8 & "8/8",B1/8+1)). This is meant to identify which relay on a relay board is associated with the given data. For example if data=3, B2 = 1 3/8 meaning the 3rd relay on board 1. If data = 77, B2 = 10 5/8 meaning the 5th relay on board 10. I could do without the 10, but the 5th relay on that board is important to me. In summary, I think my trouble is identifying when the product of B1/8 is an integer. I may also be having trouble combining value and text. Well, there it is. I may very well be going about it all wrong.
At a high level, I have several thousand rows of data. For the sake of simplicity, assume there are two columns: 1) Name; and 2)A comment (optional, could be blank). See below for example..
Sheet 1 Row 1: Mike │ "Great to work with" Row 2: Mike │ "Bad manager" Row 3: Tom │ "Great guy" Row 4: Mike │ (blank) Row 5: John │ "Cool" Row 6: Mike │ "Best boss"
On a separate sheet, I want to be able to somehow use a lookup function to combine all the comments for each name in a nicely formatted package (notice how I skipped the blank space so it wouldn't take up a line.
Sheet 2
="Comments for "&[ref to cell containing "Mike" in another sheet] - Great to work with - Bad manager - Best boss
I don't know if there is a setting I'm missing or I'm going mad but when I use the round function in VBA it doesn't round.
I am using Excel 2000. See the example attached.
In the cell A2 I have a value 0.525, cell B2 has a formula "=round(A2,2)" which = 0.53, but cell C2 is assigned via VBA ie Sheet1.Cells(2, 3).Value = Round(Sheet1.Cells(2, 1).Value, 2)
I have this formula which works well, but the 3-len part needs to be dependent on another cells content. Is it possible to have the formula automatically accommodate for this?
Eg
=ROUND(I36-I37,3-LEN(INT(Q16)))
in cell Q16 is a number 0.010 as displayed, and the sum of i36-i37= 0.007
I need the formula to say ok the minimum division size is in multiples of Q16 (0.010) and change the 0.007 to either up or down depending on the calculation.
This works currently, but the figure in Q16 can be 0.1 or 0.00001 etc, and the sum in i36-i37 could be anything also as it is a calculated error figure. I need the formula to be able to adapt automatically to the reference DP in Q16.
Namely the "3-" part in the formula needs to accomodate for the Q16 number format changing.
All cells in this formula are dates in the format dd-mmm-yyyy h:mm (except C1).
The formula works fine only if I type in a date/time like 09-Jun-2007 0:00 in cells A1 or B1. As soon as I revert to an actual date/time eg 09-Jun-2007 9:53, it returns a #VALUE! error.
I want to use the Round Function where i have a list of dates. I want the Round Function to count the number of dates in the list. I tried to use Round(C4:C16,0), but i didn't work.
I am suspecting that round function is playing a trick on me (N3 = Round(Rnd() * 10, 0) / 10 ). Although sometime it appear to be equal in fact they are not (Reponse = verifie) because of the round function
Sub auto_open() Dim N1 As Integer Dim N2 As Integer Dim N3 Dim Reponse As Double
Dim Compteur As Integer Dim Score As Integer verifie = 0 Reponse = 0 N1 = 0 N2 = 0 N3 = 0 On Error Goto ErrorHandler Score = 0 Randomize MsgBox "Welcome in the mental calculation program "...............
1) My data is $42,397.40 is there a way that I can format for it to read $42.4?
I tried ROUND function and that did not work.=ROUND(A1,-3)
2) Cell A5 is Data:1/14/09 - 1/14/09. Since I only wanted the date, I used this formula =RIGHT(sheet1!A5,LEN(sheet1!A5)-FIND("-",Sheet1!A5)) which gave me 1/14/09. I need to set the format to look like 1/14/2009 but the data function would not recognize..
I'm trying to round some figures UP to the nearest .5, However i only know this formula: =MROUND(P2,0.5) and that rounds to the nearest .5? Is there anything i can use instead to make sure it is always up not down. so 6.13 becomes 6.50 or 7.53 become 8.00? etc.
Is there a way to add the round function to the current formula in multiple cells at once? I have a worksheet that has many cells that are linked to another worksheet or workbook, and I need all of the cells to be rounded to 2 digits. Can I do this with a macro?
- I have excel file with data I need - I have fixed txt(html) template that i need to integrate Excel information into - Final result that I want to achieve is saved .txt(html) file with combination of fixed information (text) and data from excel cells.
I need to writing a VBA code for each of above (integrating text & cells, saving results as text)
I have a date of the "Sep-07"in a1 in a2 i have "fred" and in a3 "expenses" when i try and combine them so that i can save the file name as a variable ie sept-07 fred expenses. I get
am trying to code a loop but I have no idea where to start.
With the help of you guys I have already got some code from a previous thread which gives me a list of hierarchical data now I want to be able to loop through this and actually have the 'parent' next to it.
In column A I have product names, in B I have product categories and in C:H the product categories from column B are titles and the name of the subcategory is written in the cell. Because there are mutlipule sub categories that a product can belong to the report produces mirrored lines with one sub category on each line. What I need to do is combine all of these subcategory entries into one cell separated by a comer (,).
I have two columns each column has a combination of the same 3 words "cash", "card", and "trade". The are formatted as "Cash & Card & Trade" or "Cash & Card" or "Card" ect. I want a formual that can combine the entries written into each columan into one column. I will put an example below.
I have 4 cells with text in them that I am trying to combine into one cell and not have any blank lines between the text. The cells are arranged like this:
A1="One"B1=Cell where the text is combined A2="Two" A3="Three" A4="Four"
I set the cell alignment in B1 to wrap text and use the following formula in B1: =IF(A1=””,””,A1)&IF(A2=””,””,CHAR(10)&A2)&IF(A3=””,””,CHAR(10)&A3)&IF(A4=””,””,CHAR(10)&A4)
The problem is if there isn’t anything in one of the cells in column A it makes a blank line between the text in column B. I am trying to get the text to the top of B1 and not have any blank lines between the lines of text. Is there a way to change the formula so that it will do the following three things:
1. If the cell A1 doesn’t have anything in it then don’t put the value in B1. 2. If A1 has something in it and A2 has something in it then put the text of A1 in B1 and HAVE a carriage return after the A1 text. 3. If A1 has something in it and A2 does not have anything in it then put the text of A1 in B1 but DO NOT have a carriage return after it.
I have the following VBA code and try to sum the range from B2 to CY2 for DA2; then B3 to CY3 for DA3, etc. Therefore I use the for loop. It results in "Application defined or Object defined error".