+ Reply to Thread
Results 1 to 9 of 9

Single record with count associated with it. Want to make them indivdual cells

  1. #1
    Registered User
    Join Date
    01-20-2016
    Location
    Indiana
    MS-Off Ver
    2013
    Posts
    45

    Single record with count associated with it. Want to make them indivdual cells

    I am looking for a way to take the size of fish (by tenth of an inch) and the count and make each length its own row:

    What I currently have:

    Length----- Count
    4.0 --------- 2
    4.1 --------- 3
    4.2 -------- 1
    4.3 --------- 5
    4.4 -------- 0


    What I want:
    4.0
    4.0
    4.1
    4.1
    4.1
    4.2
    4.3
    4.3
    4.3
    4.3
    4.3

    Is there a formula or a function that I can use to get this?

    Thanks for all the help!

    Tyler
    Last edited by tsdpurdue; 01-20-2016 at 02:16 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Is there a forumla or function that will do this??

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Single record with count associated with it. Want to make them indivdual cells

    Assuming your data is in A3:B7 with the Titles in row 2 enter a 0 in C2 (Helper column) and then enter this in c3 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter this in E2 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    D
    E
    1
    Helper
    2
    Length Count
    0
    4.0
    3
    4.0
    2
    2
    4.0
    4
    4.1
    3
    5
    4.1
    5
    4.2
    1
    6
    4.1
    6
    4.3
    5
    11
    4.1
    7
    4.4
    0
    11
    4.2
    8
    4.3
    9
    4.3
    10
    4.3
    11
    4.3
    12
    4.3
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    01-20-2016
    Location
    Indiana
    MS-Off Ver
    2013
    Posts
    45

    Re: Single record with count associated with it. Want to make them indivdual cells

    That works!! Thank you!

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Single record with count associated with it. Want to make them indivdual cells

    Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    01-20-2016
    Location
    Indiana
    MS-Off Ver
    2013
    Posts
    45

    Re: Single record with count associated with it. Want to make them indivdual cells

    Quote Originally Posted by newdoverman View Post
    Assuming your data is in A3:B7 with the Titles in row 2 enter a 0 in C2 (Helper column) and then enter this in c3 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter this in E2 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A
    B
    C
    D
    E
    1
    Helper
    2
    Length Count
    0
    4.0
    3
    4.0
    2
    2
    4.0
    4
    4.1
    3
    5
    4.1
    5
    4.2
    1
    6
    4.1
    6
    4.3
    5
    11
    4.1
    7
    4.4
    0
    11
    4.2
    8
    4.3
    9
    4.3
    10
    4.3
    11
    4.3
    12
    4.3
    I have been using the formula above to expand the data how I need it. It works great however I discovered for some reason some of the numbers that are generated come out as long decimals:

    Example:
    2.3
    2.3
    2.29999999
    2.3
    2.4
    2.5
    2.5999999999


    What is the best way to get this corrected? I was trying use a pivot table and the numbers are displayed as the same (Because of rounding) however they will not group together

    Any ideas or help is greatly appreciated!!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Single record with count associated with it. Want to make them indivdual cells

    Here's another one...

    Data Range
    A
    B
    C
    D
    1
    Length
    Count
    Repeats
    2
    4.0
    2
    4.0
    3
    4.1
    3
    4.0
    4
    4.2
    1
    4.1
    5
    4.3
    5
    4.1
    6
    4.4
    0
    4.1
    7
    4.2
    8
    4.3
    9
    4.3
    10
    4.3
    11
    4.3
    12
    4.3
    13
    ------
    ------
    ------
    ------


    This array formula** entered in D2:

    =IF(ROWS(D$2:D2)>SUM(B:B),"",INDEX(A$2:A$6,MATCH(TRUE,COUNTIF(D$1:D1,A$2:A$6) < SUMIF(A$2:A$6,A$2:A$6,B$2:B$6),0)))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format as Number, 1 decimal place

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Registered User
    Join Date
    01-20-2016
    Location
    Indiana
    MS-Off Ver
    2013
    Posts
    45

    Re: Single record with count associated with it. Want to make them indivdual cells

    Thanks! It seems to be working!!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Single record with count associated with it. Want to make them indivdual cells

    You're welcome. Thanks for the feedback!

+ 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. Can't set variables values after function/forumla
    By PedroSchulz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2015, 09:36 AM
  2. Conditional Forumla with Forumla assigned- Help needed
    By MarkoPolo in forum Excel General
    Replies: 3
    Last Post: 03-06-2014, 06:46 PM
  3. [SOLVED] Excel 2007 : Forumla help vlookup and if function
    By tt2k in forum Excel General
    Replies: 1
    Last Post: 07-13-2012, 09:03 AM
  4. [SOLVED] Excel 2007 : Using a forumla within an IF Function?
    By tt2k in forum Excel General
    Replies: 4
    Last Post: 01-26-2012, 12:12 PM
  5. I need Help - Forumla or Function ?
    By upmm019 in forum Excel General
    Replies: 5
    Last Post: 07-30-2008, 11:25 AM
  6. Forumla for calculation function
    By ExcelGuy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2006, 11:46 AM
  7. [SOLVED] Using the IF function: Why does this forumla not work?
    By icc56 via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-22-2005, 10:05 AM

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