+ Reply to Thread
Results 1 to 5 of 5

Automatically generate formulas from just the row numbers (auto insert the column)

  1. #1
    Registered User
    Join Date
    04-23-2017
    Location
    Australia
    MS-Off Ver
    2011
    Posts
    2

    Automatically generate formulas from just the row numbers (auto insert the column)

    I don't even know how to search for this so I will explain my situation and hopefully there is a solution

    I have an extensive spreadsheet which lists a number of variables for flaked stone surfaces, eg. quality, type, panel length, scar length, scar width etc.

    These variable are recorded based on the individual scars as the rows, so my Master database looks something like this:

    Site Name Panel Number Stone Quality Panel Length Flake Length (mm) Flake Width (mm)
    08-7BF01 1 3 3456.9 153.38 178.68
    08-7BF01 1 3 3456.9 43.811 78.264
    08-7BF01 1 3 3456.9 47.059 44.033
    10-7BF03 5 3 175.38 37.091 24.872
    10-7BF03 5 3 175.38 12.615 13.826
    10-7BF03 5 3 175.38 13.826 19.305
    10-7BF03 7 3 180.80 17.393 38.882
    10-7BF03 7 3 180.80 24.033 24.187
    11-7BF01 2 4 532.79 91.314 85.252

    I have over 12 000 entries of this type



    I am now wanting to produced a summary table which summaries this info by panel number. Example:

    Site Name Panel Number Total Scars recorded Stone Quality Panel Length Flake Length (longest) Flake Length (shortest) Flake Length (average) Flake Length (median) Flake Length (SD) Flake Width (Longest) Flake Width (shortest) Flake Width (average) Flake Width (median) Flake Width (SD)
    8-7BF01 1 127 4 3456.9 145.08 11.917 45.19 35.80 28.16 206.24 11.55 55.54 42.88 36.81
    8-7BF01 2 65 2 1399.3 61.012 10.68 28.51 27.84 14.50 88.018 14.93 34.95 29.61 20.86
    8-7BF01 6 85 3 1690.263 91.32 11.16 39.31 35.52 18.45 120.85 11.73 42.62 37.56 21.422
    9-7BF02 1 4 3 192.14 49.56 29.90 39.45 38.88 9.84 100.83 58.93 80.351 81.30 20.96

    There are over 1700 panel entries.



    I have recorded the data ranges for the rows of each panel, eg. 8-7BF01 Panel 1 = 2:128, 8-7BF01 Panel 2 = 2:128, 129:193, 8-7BF01 Panel 6 = 206:290.

    Currently I have a number of formulas for each row which I copy these data ranges. Below is an example of what I have to do for 8-7BF01 Panel 1.

    Total scars =COUNT(G2:G128)
    Stone Quality =AVERAGE(K2:K128)
    Panel Length =AVERAGE(L:L128)
    LxW =AVERAGE(Q2:Q128)
    L:W =AVERAGE(R2:R128)
    Flake Length (longest) =MAX(O2:O128)
    Flake Length (shortest)=MIN(O2:O128)
    Flake Length (average)=AVERAGE(O2:O128)
    Flake Length (median)=MEDIAN(O2:O128)
    Flake Length (SD)=STDEV(O2:O128)
    Flake Width (longest) =MAX(P2:P128)
    Flake Width (shortest)=MIN(P2:P128)
    Flake Width (average)=AVERAGE(P2:P128)
    Flake Width (median)=MEDIAN(P2:P128)
    Flake Width (SD)=STDEV(P2:P128)

    Plus some others which are more complicated
    UF1% =COUNTIF(J2:J128,"UF1"), =X4/W3
    UF2% =COUNTIF(J2:J128, "UF2"), =Y4/W3



    I copy the data ranges for the panels into each formula and edit the column letter to correspond with the section of the data I am wanting to summaris. I then copy this into my summary spreadsheet.

    I have to do this for each panel for up to 24 different summary data points. Doing this manually is understandably time-consuming. I am hoping there is a way to speed things up.

    I know the formulas I am wanting to use and the row ranges for each panel.

    Is there a way automatically populate with the necessary information?

    Either by remembering the column info and linking in the data range or some other way?


    Cheers

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Automatically generate formulas from just the row numbers (auto insert the column)

    Insert table range in your data. If you attach sample workbook its more clearity.
    >For Attachment :
    >Go Advanced
    >Manage Attachment
    >Brows file (from your respective folder)
    >Click on "Upload"
    >After complete upload file click on "Closed this window"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Automatically generate formulas from just the row numbers (auto insert the column)

    Total scars =COUNT(G2:G128)
    use Countifs instead

    Stone Quality =AVERAGE(K2:K128)
    use averageifs instead

    for all the other ones
    use solution found in this page
    http://www.contextures.com/excelminmaxfunction.html
    this method works for min/max/STDEV and median
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Automatically generate formulas from just the row numbers (auto insert the column)

    Administrative Note:
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    04-23-2017
    Location
    Australia
    MS-Off Ver
    2011
    Posts
    2

    Re: Automatically generate formulas from just the row numbers (auto insert the column)

    Also post a question on msoffice forum
    http://www.msofficeforums.com/excel/...tml#post114148

+ 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. [SOLVED] Auto-generate part numbers list in one column
    By yohanmcdonald in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2015, 07:54 PM
  2. how to stop auto adjusting formulas when insert reference column
    By mystockpick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2014, 11:47 PM
  3. generate sheet automatically on the basis of auto filter on specific column
    By tanmanoj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2014, 03:42 AM
  4. Automatically generate numbers
    By ghost27 in forum Excel General
    Replies: 3
    Last Post: 08-29-2008, 08:54 AM
  5. Automatically generate new row w/ prev formulas
    By Pyrex238 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-16-2007, 02:31 PM
  6. [SOLVED] Auto generate numbers in decending order in a column
    By JsJ in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-09-2005, 11:35 AM
  7. How to get VBA to automatically generate Column Index numbers
    By Phil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-25-2005, 01:05 PM

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