+ Reply to Thread
Results 1 to 5 of 5

MID: Extracting each number their respective category

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    15

    MID: Extracting each number their respective category

    Hi guys,

    I've been trying to work on MID Formula and I can't seem to figure out how am I going to work on this problem.
    I have a series of 12 numbers, separated by comma, in one cell. Each number per order is represented by a category. My goal is to count the total of number categories tagged as 1 in each cell. To give a better perspective on how I wanted to do it, please refer to the attached file.

    Hope you guys could help me out on this.
    Thanks a lot!
    Rekussu
    Attached Files Attached Files
    Last edited by rekussu; 08-30-2011 at 04:43 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,318

    Re: MID: Extracting each number their respective category

    Hi rekussu,

    Put this formula in D7 and then pull it right and down.
    Please Login or Register  to view this content.
    See attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-21-2011
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    15

    Re: MID: Extracting each number their respective category

    Thanks a lot! I didn't get how it's done but I gotta study on it

    You're the best!

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,318

    Re: MID: Extracting each number their respective category

    Hey,

    You needed the 1st, 3rd, 5th etc character.
    I thought about it a minute and decided the formula would be
    2x +1 with increasing values of x starting with zero.

    The Column() returns the column the formula is in. You started in Column D So that was the 4th column over.

    So 2x + 1 turned into 2 times (Column() - 4) plus 1

    I put this formula above into the Mid formula to pick off the 1, 3, 5, etc characters in the string.

  5. #5
    Registered User
    Join Date
    04-21-2011
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    15

    Re: MID: Extracting each number their respective category

    thanks again!


    Quote Originally Posted by MarvinP View Post
    Hey,

    You needed the 1st, 3rd, 5th etc character.
    I thought about it a minute and decided the formula would be
    2x +1 with increasing values of x starting with zero.

    The Column() returns the column the formula is in. You started in Column D So that was the 4th column over.

    So 2x + 1 turned into 2 times (Column() - 4) plus 1

    I put this formula above into the Mid formula to pick off the 1, 3, 5, etc characters in the string.
    Last edited by rekussu; 08-30-2011 at 04:43 AM.

+ 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