Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

Feral Solved an Excel Spreadsheet question

DevoutlyApatheticDevoutlyApathetic I've Done WorseRegistered User regular
(Reposted from oDaM since I realized it's a pretty general question)

Anybody know who to right an excel formula that when you enter in the point buy cost for a stat it'll automatically output the proper stat. Alternatively if you could write it the other way around (Given stat x outputs cost y) that'd work too. My meager excel skills are failing me, likely because of horrible ability to properly write an equation that outputs the right results.

8 = 0
9 = 1
10 = 2
11 = 3
12 = 4
13 = 5
14 = 6
15 = 8
16 = 10
17 = 13
18 = 16

DevoutlyApathetic on
"When you run into an asshole in the morning, you ran into an asshole. When you run into assholes all day, you're the asshole."

Borderlands 2 PA Xbox Metatag - Bazillion Guns

Posts

  • FeralFeral Who needs a medical license when you've got style? Registered User regular
    The way I'd do it is with a VLOOKUP.
    On an unused sheet, create two columns like you have above:

    8 0
    9 1
    10 2

    etc. Let's say you put this on Sheet2!A1:B10

    Then let's assume that your input cell is A1. On the output cell, create a formula like:

    =VLOOKUP(A1,Sheet2!A1:B10,X)

    The X above can be 1 or 2 depending on which column you want to be the output values.

    I am comforted by Richard Dawkins’ theory of memes. Those are mental units: thoughts, ideas, gestures, notions, songs, beliefs, rhymes, ideals, teachings, sayings, phrases, clichés that move from mind to mind as genes move from body to body. After a lifetime of writing, teaching, broadcasting and telling too many jokes, I will leave behind more memes than many. They will all also eventually die, but so it goes. - Roger Ebert, I Do Not Fear Death
  • DevoutlyApatheticDevoutlyApathetic I've Done Worse Registered User regular
    Worked like a charm. Many thanks.

    "When you run into an asshole in the morning, you ran into an asshole. When you run into assholes all day, you're the asshole."

    Borderlands 2 PA Xbox Metatag - Bazillion Guns
This discussion has been closed.