Adding Text In Same Cell As Formula?
Jan 6, 2009
I have a list of numbers in column A (i.e.: 1234)and I need them to show up in column B in with an "*" asterisk on each side on the number (i.e.: *1234*). So I was using "=a1" in cell B1, is there away to add the asterisk to the formula as text?
View 6 Replies
ADVERTISEMENT
Apr 2, 2008
Is it possible to have in cell A1 "Sales Reviewed Weekending" and then the formula =TODAY()-WEEKDAY(TODAY())+1) all together?
View 9 Replies
View Related
Jan 29, 2010
Is there a work around to pull data from cells in excel to another tab with standard language? For example the template language will stay the same except in example A's case the last sentence "0.0" hrs will vary based what's sitting in B34.
It's stating the formula is too long. Is there too much text?
Sometimes the link would be in the middle of the text as shown in example B below with dates 00/00/00.
EXAMPLE A
For any leave of absence that is granted for more than 10 days, time off is governed under the Disability Bank Policy. Under the Disability Bank Policy there is a 10 day elimination period which must be satisfied prior to gaining access to your disability bank. During this 10-day elimination period, you are required to use your sick time for the first 6 days (48.00 hours) and vacation time for the remaining 4 days (32.00 hours). After this elimination period, we use all the time accrued in your disability bank. Currently, you have a disability bank balance of "00" hours.
EXAMPLE B
After this disability bank is exhausted, you will use all remaining and future paid time off balances from your vacation/CME/holiday banks. Because your leave begins in 00/00/00 and ends in 00/00/00 we will advance you future paid time off balance thru 00/00/00. Once those balances are exhausted the remainder of the leave will be unpaid. Per our policy, should you not return to work, you agree to pay back any time advanced to you within 30 days of your separation from the company.
View 9 Replies
View Related
Nov 28, 2013
I have some text I wish to add some content to the front and back of it. i.e. the text in the cell is "214.212.134.62" and I want to add "http://" to the front of it and ":9999" to the back to it, so it looks like "http://214.212.134.62:9999" in a different cell.
View 3 Replies
View Related
Oct 18, 2007
I have Abbreviation in column A and their full description in column B. I need them both (A + B) to be in column C.
Eg:
in column A
AVER
ANNU
BEFO
CALC
NETP
Blank cell
TOTA
SUBT
GRAN
In column B
Average
Annual Leave
Before Tax
Calculated
Net Profit
Blank cell
Total
Sub Total
Grand Total
In column C at cell C1
AVER – Average
ANNU – Annual Leave
BEFO – Before Tax
CALC – Calculated
NETP – Net Profit
In column C7
TOTA – Total
SUBT – Sub Total
GRAN – Grand Total
I am manually type this and using ALT+ENTER keys to place cells together in column C
If I can have VB code to do this task would be great. The code is to add a group of cell in column A and B then place them in column C and also reverse them back to where they were if I needed to.
I’m trying to attach the HTML file if I can, otherwise, please see the above example ....
View 9 Replies
View Related
Aug 10, 2009
I was able to find the syntax to add a cell within a text string but I am having a formatting problem. The cells which I am adding were using formulas that left decimals. Although I turned off all of the decimals on the cell, the values when I used the cell within the text string included all of the decimals and in some cases 6 or more decimal places. Is there a way to keep the formatting of the cell?
View 11 Replies
View Related
Nov 8, 2006
In a userform i have created an textbox. The user types some text in it and after clicking an OK-Button this text must be copied to a cell To allow multiple lines (enter = new line in textbox) i have changed the textbox property EnterKeyBehavior to True. The problem is that after copying this textbox1.text to a cell in see square blocks in the cell.
line1[]
line2
instead of
line1
line2
I use the following code to copy the text into a cell:
Private Sub CommandButtonOK_Click()
Dim TextboxText As String
TextboxText = TextBox1.Text
ActiveCell.Value = TextboxText
Unload Me
End Sub
how to avoid this [] (should be like alt-enter in a cell)
View 6 Replies
View Related
Mar 31, 2013
I want to do a basic formula for a poker account to work out my P/L.
I have two sheets. The first sheet will record my P/L and the second sheet records deposits and withdrawals.
When I input a figure into Sheet 1, Cell A1, I want it to then be able to add to this figure the total that is in Sheet 2, Cell A1. Is this possible? This way the figure that I input into Sheet1, Cell A1 will give me the profit/loss after taking into account any deposits/withdrawals.
ie If in Sheet2, Cell A1 I have a deposit of -500. When I type into Sheet1, Cell A1, a figure of 800, it will then change to 300. It will add 800 less 500 = 300.
View 5 Replies
View Related
Jun 24, 2012
I'm currently doing a new worksheet for work
Cell's A1: Commission Per Sale Cell B1 Running total of commission
I would like the running total to continuously incorporate all of the above commissions and this has to be in the column next to the new sales commission.
E.g.
Commission $5 $7 $9
Running Total $5 $12 $21
View 2 Replies
View Related
Feb 14, 2013
Im trying to develop a formula that sequentially numbers in column a depending on if there is a value in column B
We have documents at work that have alot of text with random spacing between that needs a sequential reference number so would like the formula to be able to look at the value in column b and if its not blank add a number . I would like this number to be the previous cell above + 1
the formula ive started looks something like =if(B10""), ???????,""
can not get excel to reference cell the last cell above with data.
View 3 Replies
View Related
Jan 14, 2013
I am having difficulty expressing a formula so that if a cell is greater than zero, it adds the value of that cell to a String figure. I have got as far as the following, the 'problem' area is in red.
Sub Share_Sales3()
Dim Prompt As String
Dim Caption As String
[Code].....
View 3 Replies
View Related
Apr 17, 2008
The loop is putting the correct formula into the cell - but THEN... - I wish to (within the loop and before it moves on) check if the value is equal to OR greater than 1 - if it is, make it a value of 1 (this '1' is then used at the bottom of the column of data to give a total). I need to do this before it moves onto the next cell. What am I doing wrong? Is it because once it puts formula in the cell, it then moves down - do I need to select the cell again first? As I had originally posted on this site - link: url]http://www.excelforum.com/showthread.php?t=641970[/url]
View 2 Replies
View Related
May 31, 2013
I'm using Excel 2007. I would prefer to stay away from the scripting side of the house if possible. This is basically a 3 day forcast weather chart. The top is the actual weather data, the bottom portion is a color coded reflection of how the weather affects various things.
This product is created in excel, but will be embedded into a powerpoint. It will be updated daily. Here is what I would like. I want the color chart at the bottom to update automatically based on the data I enter above. I have a grasp that I can update the color through conditional formatting, although im not exactly sure what that will look like with all of those cells.
I also figured out that I can insert the letters in those lower cells with something similar to " =IF(C6>90, "T", "") " which would put in a 'T' for Temperature when the temperature got above a certain degree.
I run into a problem when I have multiple factors affecting a single cell. For instance on the example in day 2 of my image. Personnel are affected by Temperate AND UV Index. How would I set up that cell to pull that information from both of those cells and display it accordingly? I would prefer the letters to stay separated by the comma, but I could live without that. The default cell color will be green, with the potential to be yellow or red. I left a few examples of possible situations on day 2 and 3.
View 3 Replies
View Related
Apr 9, 2009
Basically a cell might have a number with 3 decimal places
For Example 90.554, and i will format the cell two 2 decimal places. But when i use those cells which are formated to 2 decimal places in a formula it produces results based of all the decimal places in that cell.
Is there a way for the formula to only calculate the results based off of what is shown in the cell? . This is messing up our accounting area by alot of dollars since we sell many items.
I included an example of what i mean in this excel file which should clear up any confusion.
View 2 Replies
View Related
Jun 15, 2013
I am trying to combine the text values of several formulas in addition to adding some text (punctuation) in between.
Here is the data that I am trying to combine
C14: 2013
C15: Period 6
C16: Week 1
In Cell C13, I would like to have this value returned: "2013 - Period 6, Week 1"
Is there such a way to do this?
View 9 Replies
View Related
Jul 30, 2014
I have a situation where I have to curve fit data, this can lead to different formulas being used with varying constants.
Is it possible to pickup a TEXT based formula and related constants from other cells, and then place this into another cell as a functioning formula. For Example
Cell A1 contains the formula as a text string whether it be y=a+bx+cx^2, or y=a+b/x, etc
Cells A2:A6 contain the individual constants, a, b, c, etc
I would then want the VBA to read the text based formula and put it into an output cell as a functioning excel formulae.g
In cell B10: =a+b*A10+c*A10^2
I understand picking the constants up and putting the formula should not be too much of an issue, however trying to insert the variable form of the curve fit is the part that I am struggling with, and am unsure if possible.
View 2 Replies
View Related
Dec 25, 2008
Problem: This is what i want to show up in a given cell.
View 3 Replies
View Related
Jul 16, 2007
I would like to copy a formula in a cell and then paste only the text of the formula, but I can't figure it out. Basically, I would like to avoid going into the cells and absolute referencing or hitting F2, then copying the text.
When I hit "Ctrl C" to copy the cell, then hit "Alt/E/S/F/Enter" to paste the formula, it is just like a regular copy/paste formula-wise in that the references move.
View 10 Replies
View Related
Dec 21, 2013
I paste new data into a sheet of a monthly report I prepare. For this sheet, the # of data rows change (and is unpredictable) every month. I need the value inside a specific cell that dynamcially moves up and down based on the # of rows for that month (because it's below the rows of data).
So I made a formula to identify the exact cell # every month.
Example:
This month the exact cell is F255 in the "Refi" sheet.
So my formula in the "Summary" sheet cell A1 first finds the cell row # only (255) and since it's always column F, in B1 I have
VB:
="F" & (A1)
This outputs "F255" in B1, successfully identifying the target cell.
Now how do I write a formula in C1 to grab the value from whatever cell is named in B1. (For this month, the value in cell F255 from the "Refi" sheet)
View 7 Replies
View Related
Mar 10, 2013
I have a list of headings and items and I have a set of formulas that work out depending on the heading what items are listed.
Say theres 10 items and the heading starts at C4 and that heading has 10 items, so it puts "C5" as text in G1 and "C15" as text in G2 so i now know my cell range of items
How can i use the text in those cells to put in a formula to call that as a range?
If I use the indirect formula it shows me the value of the cell, but im after using it to reference the cell
View 4 Replies
View Related
Dec 19, 2012
I have a spreadsheet that contains a list of dates: What I need is a formula that will count the number of cells that hava a date more than 6 months old. I also would like the field automated so I don't have to change the date manually every day.
=COUNTIF(S5:S593,"<2012/06/18") This formula will give the correct read out, but I must change the date manually.
My attempts at adding a =today() command in place of the date result in 0 being the result (not correct)
This is what I have tried: =COUNTIF(S5:S593,"<"=TODAY()-"183")
View 8 Replies
View Related
Feb 13, 2014
I'm trying to do a column of individual discount calculations using a discount percentage found in a cell two to the right of a cell containing the text "Total SP:" that is always upwards and to the left of the cell where the formula goes (but could be two rows or could be 20). There are multiple "Total SP:" cells in the sheet - I always want the first one upwards. I have created the following but I get #NAME? where I hope to see the discounted value.
VB:
Dim Discount1 As Double
Discount = Cells.Find(What:="Total SP:", After:=ActiveCell, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlPrevious, MatchCase:=True).Offset(0, 2)
Range("R9:R" & LastRow).Formula = "=IF(J9>0,$E9*(1-Discount1),0)"
I've just thought, the Cells.Find needs to be redone for each cell where the formula is inserted to ensure it always catches the correct discount and this isn't going to do that - it's going to find it once and always use that single value.
I think this needs a Loop or something and to move the ActiveCell down one after the formula to get it to redo the Cells.Find.
View 1 Replies
View Related
Feb 16, 2014
I have text in column A of either "xxx" or "yyy"
I'm looking for a formula so that If
A1: "xxx" then B1: $100
Or if
A1: "yyy" then B1: $150
So when I write "xxx" or "yyy" in a cell of Col A
then $100 or $150 shows up in adjacent cell in Col B automatically.
I will need to sum the numbers later so Col B will need to be in number/accounting format.
View 3 Replies
View Related
Aug 18, 2009
I am wanting to convert a cell reference text
"=$A$1"
to an actual cell reference
=$A$1
Manually I can go through each cell and click F2 + Enter and Excel automatically changes it.
I have tried recording a macro whereby I click through each cell with F2 + Enter but the VBA writes the actual formula "=$A$1" rather than the process. This does not work as the cell reference is variable.
I'm NOT wanting an external cell to convert it for me
i.e. INDIRECT(CELL)
because I am wanting to copy the answer to another independent spreadsheet
I'm NOT wanting to paste values
i.e. return the answer from cell $A$1
because I want the cell reference to remain within the cell.
View 3 Replies
View Related
Mar 2, 2009
on the attached sheet i am trying to extract the number from the cell "under 200.5 pts" so i get just 200.5 then the cell with "L" in changes dependant on the number in the total points cell. When i try, i am getting the same answer regardless whether the total points number is higher or lower than the extracted 200.5.
View 2 Replies
View Related
Aug 28, 2012
For reference, I am making a spreadsheet for keeping track of college football statistics, team records, etc.
Each spreadsheet is named for a team (e.g. "Michigan", "Ohio St.") and lists that team's schedule. As part of my statistics, I am trying to compile the win-loss record of each team that team has played.
Generically, my spreadsheet looks like this:
Opp.'s W-L record
Game 1
Game 2
Game 3
Michigan
Ohio St.
Nebraska
In order to compile the W-L record, I would normally have to have a formula as in =SpreadsheetMichigan.J4 + SpreadsheetOhioSt.J4 + SpreadsheetNebraska.J4
This is quite a lengthy process as this formula is different for every team. I would like one generic formula to put on every team's page that would grab the text of each team's opponent for game 1, game 2, etc.
Basically, is there a formula that I can put within the formula to say
=Spreadsheet[ReturnTextFromA4].J4 + Spreadsheet[ReturnTextFromB4].J4 + Spreadsheet[ReturnTextFromC4].J4
View 1 Replies
View Related
May 2, 2009
I need an excel formula to find the part of the text in the range of cells and display the values.
Eg: cell's A1 :A25 has text in it, And B1 :B25 has values in it.
I need to find "ABC" from A1:A25 ,IT could be either "ARRA ABC" or
"NON ARRA ABC" but not just and display the values for this frm B1:B25 in C1.
examples for A1:A25 is
A1 ARRA ABC
A2 Non ARRA DEF
A3 ABC
A4 Non ARRA GHI
A5 DEF
A6 ARRA JKL
I used the following formula,It seems to be working but only to that cell if i try to put the same formula in another sheet or another cell ,I don't see the values.
My Formula is as follows.
=IF((OR(A1:A25="ARRA ABC",A1:A25="NoN ARRA ABC")),B1:B25,0)
View 9 Replies
View Related
Jun 6, 2006
What is the proper way to enter text and a forumla into the same cell? For example a would like a macro to imput the words "revised on" and the formua Today in to the same cell.
View 2 Replies
View Related
Aug 1, 2006
How do I enter both text and a formula into the same cell?
Eg. Cell needs to result in: "Today's sales = $12,500" where $12,500 is the result of a formula.
View 7 Replies
View Related
Apr 3, 2013
I am trying to create a spread sheet where I have different columns. The columns consist of name and dollar amount. Names may occur more than once. I would like to scan the column with the names and copy the different names to another column. Once that is done, I am hoping to copy the value or sum of all values associated with that name to the column beside it. I am going to have a long list of names with different values and I would like to sort them and add up those values. I have attached an example of what I am hoping to achieve. I am hoping my 'Sum of Values' is actually summed, I left it longhand for explanation sake.
Name
Value
Name
Sum of values
x
4
x
4+2
[Code] ....
View 1 Replies
View Related