+ Reply to Thread
Results 1 to 3 of 3

Creating a loot table, cannot find the proper formula

  1. #1
    Registered User
    Join Date
    07-07-2017
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    1

    Creating a loot table, cannot find the proper formula

    Howdy howdy. I'm attempting to create a simple loot table that combines the text of a portion of the A row that will be the row containing suffixes, and the B row that will contain weapon / item names.
    I'm trying to get to the point where it will select a random suffix and weapon / item and combine them.

    I'm still VERY VERY new to excel but I touched on it a year or two ago. I'm not quite smart so it may be to.. communicate idea's to me.

    As an example, this is my simple set up :
    Capture.PNG

    So what exactly can I do for this to start producing combinations? I know it's not exactly the simplest thing to be attempting as I've just gotten back into excel a couple hours ago, but it's something I'd like for recreational use with friends.

    EDIT : Apologies for any bad grammar, and the likes. Also Concatenate seemed interesting to my needs but it seemed to not be EXACTLY what I needed.
    Last edited by Spicoceles; 07-07-2017 at 09:41 PM.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Creating a loot table, cannot find the proper formula

    Welcome to the forum.

    You seem to have a lot of empty space on your sheet and a lot of merged cells, which cause problems with formulae, so unless you're really attached to it, I suggest starting from scratch with a new sheet.

    Put your title in row A (A2 will probably work best) and make the font bigger - the row will automatically increase in size.
    In A2 and B2 type 'Prefix' and 'Weapon'.
    List your prefixes from A3 downwards.
    List your weapons from B3 downwards.
    Leave column C blank to give a gap.
    In D2, type 'Random Weapon'.
    In D3, use this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The parts of the formula are:
    COUNTA(range) - counts the number of non-blank cells in the range;
    COUNTA(range)+2 - because the range starts in row 3, this gives the row number of the last used cell in the range;
    RANDBETWEEN(lower number, upper number) - gives a number between 3 and the last-used row;
    INDIRECT("A"&number) - this converts to a cell reference, so Excel 'sees' A5 or A7 or A17, etc;
    & is a concatenation which joins results together;
    " " gives a space.
    Putting it all together in plain language:
    =Result from cell ( A number between 3 and last row of column A) space result from cell ( B number between 3 and last row of column B)
    For example: A11 space B8
    Which will give you whatever is in A1 ('Crystal' for example) and B8 ('Dagger' for example).

    The attached file should show you what I mean by all of the above. Hope that all helps and enjoy playing!
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Creating a loot table, cannot find the proper formula

    I got your PM - good luck with trying it out. If you run into any problems, please get back to us - use this thread if it's a continuation of the same problem.

    Once you're happy that your question has been answered, please mark the thread as Solved so others know there's an answer here (see instructions in my sig). Thanks.

+ 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. Find First proper empty row
    By Rob K in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2015, 08:09 AM
  2. Proper use of SearchOrder in Find
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2014, 11:55 AM
  3. Creating proper constraints to create solver model
    By Burton18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2014, 11:51 AM
  4. Trying to Find the proper Date Formula for my Job
    By jsonnier89 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-03-2013, 01:37 PM
  5. [SOLVED] Formula for creating a table from data from another table
    By amasson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-12-2013, 09:35 AM
  6. Creating an RPG Style Loot Dropper
    By soxley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2012, 06:00 PM
  7. Replies: 11
    Last Post: 01-03-2009, 06:29 PM

Tags for this Thread

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