How do I add letters to the end of totals?

Probably very simple, but I'm new.

I need the total in one cell appear the same in another, but with a
'a' after it. ie 19 becomes 19a. If the original total already ends i
'a', it becomes 'b', and so on.

What is this called, and how can I do it?

Rya

--
Message posted from http://www.ExcelForum.com

0
8/10/2004 1:15:37 AM
excel.misc 78881 articles. 5 followers. Follow

1 Replies
407 Views

Similar Articles

[PageSpeed] 2

Hi Ryan,

If you want to use a custom function, paste the following code into a
standard module in your workbook (instructions - if needed - follow the
code):

'----------------------------------------------
'\\ Start of Code
Function abcADD(Cell As Range) As String
    Dim suffix As String

    If IsNumeric(Cell.Value) Then
        suffix = "a"
    ElseIf Asc(Right(Cell.Value, 1)) > 96 And _
                            Asc(Right(Cell.Value, 1)) < 122 Then
        suffix = Chr(Asc(Right(Cell.Value, 1)) + 1)
    Else
        suffix = Right(Cell.Value, 1) & "a"
    End If

    If suffix = "a" Then
        abcADD = Cell.Value & suffix
    Else
        abcADD = Left(Cell.Value, _
                                    Len(Cell.Value) - 1) & suffix
    End If
End Function
'\\ End of Code
'----------------------------------------------

Instructions (shamelessly lifted from a post by Dave Peterson)::

Open your workbook.
Hit alt-f11 to get to the VBE (where macros/UDF's live)
hit ctrl-R to view the project explorer
Find your workbook.
should look like:   VBAProject (yourfilename.xls)

right click on the project name
Insert, then Module
You should see the code window pop up on the right hand side

Paste the code in there.

Now go back to excel. by hitting Alt-F11

To use the function, type :

                =abcADD(A5)

into the desired cell, where A5 is the cell containing  your existing value.


---
Regards,
Norman



"ryangodammit >" <<ryangodammit.1ar0jz@excelforum-nospam.com> wrote in
message news:ryangodammit.1ar0jz@excelforum-nospam.com...
> Probably very simple, but I'm new.
>
> I need the total in one cell appear the same in another, but with an
> 'a' after it. ie 19 becomes 19a. If the original total already ends in
> 'a', it becomes 'b', and so on.
>
> What is this called, and how can I do it?
>
> Ryan
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


0
normanjones (1047)
8/10/2004 2:32:11 AM
Reply:

Similar Artilces:

Add Lookup Fields to Entity
I need to add 4 "technical contact" fields (which would lookup the Contact entity) to the CONTRACT form. Is this possible? I've found it difficult to figure out what to do first. Thanks in advance, Brandon Not possible. You cant have multiple lookups for the same entity. You also cannot create new relationships between two system entitites. This will work in 4.0 Not possible, Pezman. N:M relationships are not possible in 3.0 yet. There is a alternative solution: a new entity to act as an N:M relationship. In your case, Contract/Contact. This entity has two 1:N relations...

Excel Add Ins
What is the name of the template wizard with Data Tracking (Excel. I can not locate the add in template wizard with Data Tracking in Office 2003 Hi Richard You are not the only one<g> The Add-in is working in 2003 only the install file is not working. Copy the xla file from a PC with 2002 to the PC with 2003 and it will work(use Tools>add-ins to browse to the file in Excel) -- Regards Ron de Bruin http://www.rondebruin.nl "Richard" <Richard@discussions.microsoft.com> wrote in message news:193C5DFD-578D-48F7-B9D6-9FEF5BDCEB64@microsoft.com... > What is t...

Add on
Hello, Here is a scenerio. A client is buying 1lb of ham. It is put on a waxed paper then wrapped into a white paper and then put into a shopping bag. The usage of shopping bag is 100% cases the usage of paper is only with certin categories of sales. Same with the waxed paper. Question: Is there a way of associating wax paper, white paper and shopping bags in a way so with every sale a piece of paper gets deducted from inventory and one bag is deducted from inventory? I would like to run a report every so often and see if I need to purchase any supplies. Kits and assembly do not work...

add a row or column to a single cell in exel
I am trying to split a single cell into 2 rows can you help If I understood correctly you want to enter an entry in two lines in a cell at appropirate place hit lt+enter and again hit enter for e.g venkat (alt+enter) raman(enter) "trev" <trev@discussions.microsoft.com> wrote in message news:89B2C15C-057F-43B9-8282-37923D5EA397@microsoft.com... > I am trying to split a single cell into 2 rows can you help ...

POS 2009 Add-In: Populating a Task Pad
I would like to create a custom application that has the ability to maintain the items that are on certain Task Pads within POS 2009. These items would all be regular menu items (ex: hamburger, hot dog, french fries, etc) and not functions. For example, if a task pad was supposed to allow the cashier quick access to daily specials, then this custom application would need to be able to clear the task pad each day and add the items for that day. Is this going to be possible? Please provide some guidance. Thank you, Sean This is a multi-part message in MIME format. ------=_NextPart_00...

way to delete add. fr. auto. email add. function?
Is there a way to delete old or no longer used email addresses that appear in the drop down box when I am addressing a new email? Shebubba wrote: > Is there a way to delete old or no longer used email addresses that appear in > the drop down box when I am addressing a new email? That is the nickname cache. Search and delete the .nk2 file. That's the cache for nicknames (i.e., your manually entered e-mail addresses). If you only want to delete some of them, highlight an entry and hit the delete key. If that doesn't work, use Nirsoft's NK2 Viewer utility (it e...

Add-in cannot be loaded OL07
Every time I open Outlook 2007 I get an error message regarding an add-in 'DCCExtensions' (DCCEXT32.DLL). It says the add-in cannot be loaded and has been disabled by Outlook. I've been getting this message ever since I uninstalled Winfax. How do I make this error stop appearing? Thanks. -- kapibarra Remove the addin from OL by using Trust Center, Addins. http://office.microsoft.com/en-us/outlook/HA100341271033.aspx#14 "kapibarra" wrote: > Every time I open Outlook 2007 I get an error > message regarding an add-in 'DCCExtensions' (DCCEXT32.DLL). ...

Format text to add character
I have two fields that should match, but one includes special characters while the other does not. Example: Field1 00ABCD123456123 Filed2 00/ABCD/123456/123/SBZ I need to find records where these two fields don't match, either by changing the display of one of them, or a query to compare Field1 character 7-15 with Field2 characters 9-14, 16-18. Hope this makes sense. Can anyone help? Thanks! Take a look at the following from the Access Help file it might be what you're looking for... Extract a part of a text value The following table lists examples of expressions that ...

Add File menu to custom toolbar
Hi All, I am trying to add the 'File" menu and "Window" menu of the Standard Toolbar to a custom toolbar but failing miserably! I think it should look something like: Sub AddMenuTitles() Application.CommandBars("MyCustomMenu").Controls.Add("File) Application.CommandBars("MyCustomMenu").Controls.Add("Window") End Sub Can anybody help please Regards Michael Sub test() AddMenuTitles True ' or false to delete End Sub Sub AddMenuTitles(bAdd As Boolean) Dim cbr As CommandBar Dim cbP As CommandBarPopup ...

add a DC in a LegSite
Hi, In the disaster recovery plan we want to create a leg site and put a DC in it. Here are some questions on how to achieve this smoothly. 1. Should I create the new site/subnet first and then promote a server in that subnet/site to DC, or should I promote a server in existing site/subnet and then move this DC to the new site/subnet? 2. When promoting a server to DC, should the server be a member server (already joined the domain) or just a workgroup member (no domain membership)? 3. The DC will be an AD-integrated DNS server. Should I install the DNS component (but not confi...

Month End
Is it possible to have employees enter new transactions without closing the month and then change the system datem to last day of prior month and close the month? Mike, What are you trying to accomplish? You can open next month, have employees enter into next month while last month is still open. When you're done, simply close last month. No need to change the system date. You do still need to control what dates they use since you have both months open. You don't want next month's rent in last month. Mark (dynamicaccounting.net) On May 7, 8:54 am, MikeWal <Mike...@discuss...

Having OL automatically add a bcc: address
My boss wants to add me as a bcc: to every email she sends. Is there a way to set this up to happen automatically? Please reply to matt@lkigroup.com Thanks much. Matt ...

excel add-ons
Awhile back, there was an add-on for excel that had a lot more tools. It showed on the toolbar. Somehow I lost it and I would like to get it back. It had a lot of tools like for changing case and fill ins. Any help wouyld be great. Maybe ASAP Utilities. Try a 'net search for this add-in. Gord Dibben MS Excel MVP On Sun, 22 Mar 2009 20:22:43 -0400, "kmkx70a" <kmkx70a@prodigy.net> wrote: >Awhile back, there was an add-on for excel that had a lot more tools. It >showed on the toolbar. Somehow I lost it and I would like to get it back. It >had a lot of t...

How can I add the customer's PO# to the drop-ship Purchase Order?
Our purchasing agent would like to be able to have the customers PO# from the Sales Transaction Entry screen show up on the PO's. Is this doable in Report Writer or can it not be done? We are using GP v9.0. As I still consider myself a newbie with RW, I would appreciate detailed instructions if possible. Thank you in advance for all responses. It is not possible thru traditional table relationships in Report Writer. Let me explain: you can certainly link the Purchase Order Work table to the SOP_POLink table and the SOP_POLink table to the SOP Transactions Work table, but will...

Map Add-On?
I am looking for an Excel Chart add on so that I can take numerical data and display it on a geographic map of states or zip codes for example. Even better I could color or shade a state based on the values in my spreadsheet. Any suggestions would be appreciated. Mark ...

how to count specific values only not total count
I am using Access 2000 - I have one column of numbers (probably 1000 numbers in total) ranging from 1 to 9 - Does anyone know how I can count the times that each specific number appears - for instance - count the total number of ones, count the total number of two's, three's, four's etc. I have tried this in a query and have not yet been successful - does it need to go only in a report? Thank you very much - Steven On Dec 8, 9:14=A0pm, steven <ste...@discussions.microsoft.com> wrote: > I am using Access 2000 - I have one column of numbers (probably 1000 nu...

front end /back end license
I installed a new exchange server 2003. Now in order for internet access I needed to install exchange on my web server to act as a front end. Do I need to purchase an additional license of exchange to support the front end? "Gonzosez" <tbyam@hinklemfgNS.com> wrote: >I installed a new exchange server 2003. >Now in order for internet access I needed to install exchange on my web >server to act as a front end. >Do I need to purchase an additional license of exchange to support the front >end? > You need only procure sufficient Server licences to match how ma...

Consolidating and totaling rows into single row
I have an Excel 2003 spreadsheet with Position Title, Location, Pay Plan, Position Series, Position Grade, and FTEs. I want to organize this data by Position Title, then Location, then Grade, and finally FTEs. For example, I have multiple rows of Human Resources Specialist in different locations, in different grades each with a FTE of 1. I'd like to consolidate each row of Human Resources Specialist in the same location in the same grade and have the row display the total number of FTEs for that title in that grade at that location. Thanks in advance for your help! A p...

How to add a VScroll to a CStatic Object
I create a CStatic object and write some text to the object but the text is too long to display in the work area but I don't konw how to add a vscroll to a CStatic object who can help me? I would say instead of a CStatic, use a CEdit control with the ReadOnly flag set. Because static controls by default aren't scrollable, so even if you add a scrollbar to it, you will have to manage the entire thing yourself (drawing, scrolling....), more trouble than it's worth. Ali R. "Smallfrogs" <super_smallfrogs@hotmail.com> wrote in message news:eLAO92y7DHA.2832@tk2msft...

Add ContractLine Entity in Menu
Hi, Is it possible to add a shortcut in the Service Menu to the ContractLine Entity? I really appreciate if someone could help. Regards, Alcides ...

Missing letter "c"
I have a problem (first with Money 2003) that, when I enter payee that starts with letter "C", that letter is "eaten up" when Money tries to match the payee- so say if I want to enter "Cash" and the first match that Money comes up with is "Cardio" then I get "ardio", so if I continue typing it would be "ash". I have to put a space in front, finish typing, and then delete it. I just yesterday upgraded to 2006 and I still have the same problem there. I did notice that someone complained about the very same problem back in 2004, but onl...

Error on front-end close
Hi there, These db's are on Access 2007. I have a front-end that is currently roughly 2.7Mb in size linking into a db of roughly 95Mb. On a menu there is an Exit button, simply running DoCmd.Quit When I press this button the following error occurs: Problem signature: Problem Event Name: APPCRASH Application Name: MSACCESS.EXE Application Version: 12.0.6423.1000 Application Timestamp: 49b08a47 Fault Module Name: VBE6.DLL Fault Module Version: 6.5.10.40 Fault Module Timestamp: 48a4b5d6 Exception Code: c0000005 Exception Offset: 00088cb4 OS Version: 6.1...

Problem- add-in Access Outlook Add-in for Data Collection & Publis
I have a problem with Outlook 2007 and the add-in Access Outlook Add-in for Data Collection and Publishing. This add-in worked when I first installed Outlook 2007 when installing Office 2007 Enterprise. The add-in created a sub-folder in my Inbox named Data Collection Replies and worked well until about 6 weeks ago. Now I can’t get the add-in to work at all even though it appears in the list of COM.adds in Outlook 2007. More perplexing is the error message I now receive EVERY time I click on any email message to read it. The message is titled ‘Custom UI Runtime Error in...

Address Word Letter X for Office 2004?
I've been unable to get the Address Word Letter X script to work on my new version of Office 2004. The Prefs script won't recognize my stationery file (it's grayed out). Did the revisions for scripting in Office 2004 break the script? Is there a workaround? Thanks, Steven Hi Steven, What script is this? Did you check macscripter.net to see if a new version is out? If not, your best bet is probably to go back to the ReadMe on the script and see if you can email the script writer and ask them about it. Or you could try opening up the script looking for anything obviously ...

Add target to trend chart
I've created a chart trending our company's daily rank over time. We have a specific rank as a target goal, and I'd like that to appear as a flat line on the chart, so we know how far we have to go. How can I get such a line, without having to populate a new column with the same number? Thanks Two options, 1) Simply draw a line where your target is at using the drawing toolbar. 2) Add an additional series to your chart containing two points. The X value of the points indicates the length of your line. The Y values should be set to your target. "Patience" <...