+ Reply to Thread
Results 1 to 4 of 4

Thread: Customize Excel Cells with Suffix

  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    phoenix
    MS-Off Ver
    Excel 2010
    Posts
    2

    Customize Excel Cells with Suffix

    Hello everyone. I am new to Excel Forum, so my apologies in advanced for any oversights. I am in desperate need of help with an excel issue, and I'm hoping someone can help; I will do my best to describe the issue. I am attempting to customize a cell in excel to have an alpha suffix after a numeric value has been entered. So far I have been successful in doing so by using the customized cell format description of: $##.00 _ "/ EA". This code results as such Example: if you input 1.1, the cell display is as follows: $1.10 / EA. by using this code, the "EA" portion of the output is fixed, however I am now having another new issue. The unit description, in this case being "EA", is subject to change and will be dependent on another cell, so what I am looking for is the code of how to have my alpha output unit value dependant on another cell. Can anyone please help? Thank you in advanced!!!

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Customize Excel Cells with Suffix

    You can't type in a cell and have "Varying" suffixes appear automatically in the same cell you typed in, you can only apply one number formatting scheme, and number formats do not refer to other cells.

    However you CAN accomplish this in an adjacent cell. If you type a value in A1 and qty type (EA, Cs, BTL, Oz) in B1, then in C1 you could construct this output:

    ="$" & TEXT(A1, "0.00") & "/ " & B1


    If you want to change the numberformatting applied to cell based on some other cell you type in, that would require VBA programming to automate.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-30-2011
    Location
    phoenix
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Customize Excel Cells with Suffix

    Not exactly what I was looking for, but Thanks for the reponse Jerry..! You extremely knowledgable in excel! If you have time, I can forward you the spreadsheet, which might help explain what I am trying to do a little better if you'd like?

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Customize Excel Cells with Suffix

    I know it's not what you're looking for, I'm suggesting something that IS available to you in formula/cell only format.

    Anything like your original question will require VBA. You can post your file and fuller information here if that's the path you want to take, not everyone is up for maintaining a workbook full of macros.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0