+ Reply to Thread
Results 1 to 2 of 2

Formula Help Price Code

  1. #1
    Registered User
    Join Date
    03-15-2004
    Location
    OR, USA
    Posts
    51

    Formula Help Price Code

    Hi all,
    I have a list of prices, and I would like to convert them into code. BLACK HORSE: B=1 L=2 and so forth. I only need even dollar amounts, no cents. Someone gave me this formula, but it is for dollars and cents, and it makes 0=B instead of 1=B. This is what I am working with so far. Q is just a dummy letter in front of each code.
    ="Q"&IF(ISNUMBER(A1),MID($G$1,A1/1000+1,1)&MID($G$1,MOD(A1,1000)/100+1,1)&MID($G$1,MOD(A1,100)/10+1,1)&MID($G$1,MOD(A1,10)+1,1)&MID($G$1,(A1-INT(A1))*10+1,1)&MID($G$1,ROUND((A1*10-INT(A1*10)),0)*10+1,1),"")



    Your help would be greatly appreciated.
    Thanks again,
    Nathan Sargeant

  2. #2
    Kassie
    Guest

    RE: Formula Help Price Code

    Hi Nate

    Excel is calculating on a 0 - 9 sequence, while you want a 1 - 0 sequence.
    The easiest way of solving the problem is to comply, and in stead of using
    *BLACKHORSE:*, rather use *:BLACKHORSE*. You will then get the desired
    effect.
    hth

    "natei6" wrote:

    >
    > Hi all,
    > I have a list of prices, and I would like to convert them into code.
    > *BLACK HORSE:* B=1 L=2 and so forth. I only need even dollar amounts,
    > no cents. Someone gave me this formula, but it is for dollars and
    > cents, and it makes 0=B instead of 1=B. This is what I am working with
    > so far. Q is just a dummy letter in front of each code.
    >
    > ="Q"&IF(ISNUMBER(A1),MID($G$1,A1/1000+1,1)&MID($G$1,MOD(A1,1000)/100+1,1)&MID($G$1,MOD(A1,100)/10+1,1)&MID($G$1,MOD(A1,10)+1,1)&MID($G$1,(A1-INT(A1))*10+1,1)&MID($G$1,ROUND((A1*10-INT(A1*10)),0)*10+1,1),"")
    >
    >
    >
    > Your help would be greatly appreciated.
    > Thanks again,
    > Nathan Sargeant
    >
    >
    > --
    > natei6
    > ------------------------------------------------------------------------
    > natei6's Profile: http://www.excelforum.com/member.php...fo&userid=7185
    > View this thread: http://www.excelforum.com/showthread...hreadid=518949
    >
    >


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