+ Reply to Thread
Results 1 to 12 of 12

Numbers to text

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Question Numbers to text

    I wasn't entirely sure which forum to stick this one in, as I have no idea how to actually solve the issue.

    A bit of a tricky one this one, at least for me, but I'm sure many fine individuals here can come up with an elegant solution.

    A bit of context:
    I'm making a character sheet for the RPG Alpha & Omega (if any of you've heard of it), as the regular one that is intended for the game is, well, rather bad. One of the things that I really like to do when I make character sheets, is that they update themselves automatically so that I don't have to go through the entire thing if I upgrade one of my attributes or skills. However, I've encountered the issue where I need to make excel convert a value into text, and not just converting a number into counting as text so it doesn't get involved into formulas and such. Read on for a further explanation.

    Basically what I am trying to achieve is for excel to understand that whenever I type a value between 10-12, 13-14, 15-16 (and so on) for it to change that into a number of dice of a specific kind denoted as 1D6 as an example IN A DIFFERENT cell. If I write 14 in cell D11 for an example, it should put the dice "value" of 1D6 in the D14 cell. Once I get the method down I'll be able to type it out to work for all kinds and values of dice.

    Is this even possible? Time to set it all up isn't an issue I guess, as in the long run it will save me a lot of time, and keep me from mistakes when playing.

    Let me know if what I was trying to explain here didn't make any sense, I'll try to rephrase myself.

    Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,661

    Re: Numbers to text

    Upload your excel file make it easier to understand your question.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Numbers to text

    Alpha & Omega character sheet.xlsx

    Let's see if that works.

    I've manually entered the dice values so far, but I'd rather have it do it by itself as far as possible.

    It's not finished yet, but the principle will be the same across all of it.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,661

    Re: Numbers to text

    I am not sure, but is this what you want?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Numbers to text

    In essence, yes! Based off the total, rather than the characteristic value. 10-12 would yield a value of 6D4, 13-14 would give 1D6, 15-16 would give 2D6. But this is for me to edit it.

    Could you explain to me how you managed to get it working?

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,661

    Re: Numbers to text

    A simple VLOOKUP formula did it
    Make a list of all the values with corresponding dice values

  7. #7
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Numbers to text

    Thanks. I'lll take a look at VLOOKUP formulas. Never used them before.

  8. #8
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Numbers to text

    Yeah okay I clearly do not understand the vlookup function. I followed a youtube tutorial (https://www.youtube.com/watch?v=-WAEzokHSJM), but I only get a #REF error. Any idea why?

    I attached my attempt.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,661

    Re: Numbers to text

    You defined 'Char' as:
    ='background shenanigans'!$B$3:$B$52
    Change it to:
    ='background shenanigans'!$B$3:$C$52

  10. #10
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Numbers to text

    Hmm

    All right.

    I got it working, partially. However, when I try replicate the function further down on the page, it gives e a #N/A error now. Which is strange, because the 1st one is working 100% perfectly now (thank you so much!). Can the table not be used several times over or something?
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,661

    Re: Numbers to text

    You get a error in D13 because he is looking for 15.5 (Cell D12) and the list does not contain that value.
    You see in D12 the value 16 but that is because your celformat is 'number ' with '0 decimal places'

  12. #12
    Registered User
    Join Date
    04-27-2015
    Location
    Oslo, Norway
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Numbers to text

    Aha I see. Thanks

    I take it is easier to just put in the decimal numbers than to make it understand 15,5 as 16? Yeah I'll just do that. It's all going to be X.5 something or a clean number anyway.

    You've solved my problem. Thank you so much! 10/10
    Last edited by Isbjorn91; 04-27-2015 at 04:40 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 19
    Last Post: 07-20-2014, 04:55 PM
  2. [SOLVED] Marco to convert numbers stored as text to numbers and dates stored as text to numbers
    By a2424 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2014, 10:19 AM
  3. [SOLVED] [SOLVED] Macro/Wildcard to remove only numbers excluding text with numbers
    By indianhp in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 08:16 AM
  4. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  5. Replies: 9
    Last Post: 03-26-2012, 02:16 PM

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.6.0 RC 1