I have a column of 1000 random R and B characters in A1:A1000
I would like to count how many series of single, double, triple, quad, 5's, 6's, 7's, 8's there are of any single character. i.e.
RRRBRBBRBRBBBBRRR...etc (imagine this transposed down in a column (A1:A1000)
Now the outcome below would show something similar as in the above example
Series For R
Count
1:
3
2:
0
[Code] .........
Series For B
Count
1:
2
2:
1
[Code] ....
Could this be accomplished using a formula or code?
I have about 50 lincharts that I wont to update with VBA but they have different number of series. Some have two series, some three and others four. Is there a way to count how many series a chart has? Otherwise could I get tips on how to approach this problem.
There are three questions in Comment boxes in the file. The bottom line is that the final item name in column F can only be 50 characters long including spaces. As I am entering the information in columns B,C & D it would be great to be able to see the numbers of spaces I have left to enter characters in column H without having to hit "Return" and leave the cell.
The first question may need a Macro so excuse me that it is included in the Formula section.
I am trying to count the characters in a string in one cell. For example, I want to count the number of "-"'s in the cell. The version number of part numbers is always the last two characters if the value contains at least one "-". However the parts have a non standard number of characters.
444444 = 0 444-44 = 1 44-44-44 = 2
There can be 0,1 or 2 "-" in the string. I can use the substitute formula to get the root part number, but I was wondering if there is an easier way. The raw data is from our ERP system, so I multiply the value by 1 to get a number if there are no "-" for the vlookup in another formula to work....
I'm trying to count the number of characters (including spaces) in a cell - is there a formula for this?? =CELL I thought would do it but doesn't
PS What I'm actually trying to do is return the Surname in a cell containing a full name. I can get the first name easy enough with =left(A1,Find(" ",A1)-1 (I take no credit for that...) but can't get the surname - I thought I might be able to use =right but can't.
Gotta short question: How can you get the number of characters in a cell? for example I got the word HELLO (5 characters). is there any method which could be applied on the contense of a cell to return the number of characters in the cell?
I am using the macro below to count the number of specific character in a cell. The only problem it only counts one cell. How do I modify to display multiple cell counts if more than one cell is selected?
Count the numbers of the characters in a cell. The number of characters must be appear in another cell. This number must be refresh when you type the key, not when you push enter.
I have a worksheet (SHEET1) where users would enter their ID Number and then they would hit a Submit button. The submit button would then add that ID Number into another worksheet (SHEET2) in a running list of ID Numbers. But before it is submitted, I would like to check for two things:
1. ID Number must be 9 characters long (numbers and/or letters) 2. ID Number must not already exist in SHEET2
If condition 1 is not met, then just have a message box asking user to check their entry and try again.
If condition 2 is not met, then just have a message box saying "thanks" but no addition will be made to SHEET2
I have a cell in excel that has 5 lines of text and I would like to count how many characters there are in each line of the cell. Is there a formula/macro to count them?
Ive written the macro below to sort Column A according to the length of the cell values in Ascending order. Ive done this by writing the length to Column B for each value and then sorting on column B. Surely there is a more elegant method, perhaps using arrays.
Sub SortIt() Range("A1").Select Do Until IsEmpty(ActiveCell) ActiveCell.Offset(0, 1).Value = Len(ActiveCell) ActiveCell.Offset(1, 0).Select Loop Columns("A:B").Sort Key1:=Range("B1"), Order1:=xlAscending End Sub
I run a large simulation experiment. I have a loop plotting data in excel of a user defined area. Because of the limit of 255 series I have allowed a maximum of 250 simulations (they all need to be plotted). But the length of each simulation is free. I know there is a limit of 32.000 data points in a graph and I have this as a condition too.
If I set the data range to 100 columns and 3000 rows the graph is produced when I plot by columns. (code below)
But if I set the data range to 250 columns and 1000 rows I get the above mentioned error message. Even though I only have 250 series.
After the data is plotted it is the code below that gets the error:
Sub Macro5() ActiveSheet.ChartObjects("Chart 243").Activate ActiveSheet.ChartObjects("Chart 243").Activate ActiveChart.SeriesCollection(1).Delete ActiveChart.SeriesCollection(2).Delete End Sub
However, if there is no SereisCollection(1) actually present in the chart I get an error. How can I work around this? I will need an IF statement I assume, just not sure what it will look like.
I just recently installed Excel 2007 and I would like to know if it's possible to change all data points of a chart at the same time. In Excel 2003, I would normally hold down shift while clicking on each of the data points to make a global change. However, it appears I cannot do that in 2007.
I would like to display each data point's series name. When I go to Layout on the Excel Ribbon, and click on "Data Labels", and click on "More Data Label Options", the actual Y-axis values are shown for each data point. However, I do not want this - I actually only want the Series Name, but when I uncheck "Value" and check "Series Name" instead (under "Label Contains"), it only changes it for one of the series. Is there a better way, instead of going through each and every single series to make this change?
The following code is supposed to produce six series on an xlXYScatter chart. It produces seven with the seventh series being a repeat of the sixth but named series 7.
Sub Chart2()
Dim DataRange As Range Dim CellString As String 'Stores a cell range in the form "AA27:AB39" Dim CurrentSeries As Integer Dim SeasonCount As Integer
I have a list of data on one sheet and a 'reports' page on another sheet. The reports page has several pivot tables and a pivot chart. I want the pivot chart to format the bars on the chart relevant to the series name. The series names are "R" "A" amd "G" for Red Amber and Green respectively, I want the chart to change the colour of the series so that it is the correct colour ie. "R" would be coloured Red, "A" would be Amber and "G" would be green.
Sub PivotLoader() Dim Red As Integer Dim Amber As Integer Dim Green As Integer Red = Range("H9").Value Amber = Range("H10").Value Green = Range("H11").Value Range("B8").Select ActiveSheet.PivotTables("PivotTable4").PivotCache.Refresh Range("D25").Select ActiveWindow.SmallScroll Down:=18 Range("B49").Select...........................
I consider myself decent at Excel, but I don't have quite the depth of knowledge I would like. Here is my issue:
I currently have a series of 50 numbers for each row on a 300 row spreadsheet. I would like to write a formula that identifies the six largest numbers in that series and adds them together. So, for example, if the series was 8-6-4-4-4-5-1-1-0-15-3-9, the formula would spit out 47 (15+9+8+6+5+4)
I would like to have two series of data using the same X axis (date, formatted in months). The Y axis is in intervals of 100,000.
The first data series is historical (actual) data (i.e. Jan 2009 to August 2011). The second data series is forecast (Sept 2011 - August 2012). So i want the forecast series to start immediately after the historical series. It is a 'line with markers' chart. The key objective is that the forecast data looks visually distinct from the historial series.
Is there an Excel formula to remove the spacebar + characters in red, as shown below? I need to be left with only the last name, first name and the semicolon.
Mouse, Mickey ;
Microsoft Outlook has changed the way that email addresses from the global addressbook copy and paste (from version 2003 to version 2010).
So we have people's names in a table. First name in one column and last name in another column. We have a 3rd column where we can use 8 characters to do a combination of First 5 of Last Name + first 3 of first name. However, if someone's last name is only 3 or 4 characters, we'd then want to take more from the first name to fill out the 8 characters.
So: Charles Johnson -> Johnscha John Smith -> Smithjoh Willian Wu -> Wuwillia
What's the best way to do that without creating some crazy formula with tons of if/thens?
B25:AK25 represent months 1-36 B26:AK26 is declining dollar value tied to other formulas Need formula which indicates in which month the associated dollar amount in row 26 first declines to or below zero.