+ Reply to Thread
Results 1 to 17 of 17

Need formula instead of sorting

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-06-2008
    Location
    NC
    Posts
    149

    Need formula instead of sorting

    I have a spreadsheet that has original data. I originally used the array formula after sorting. But my application is different now. I can not use the sort function or any macros so it has to be a function or filter. Been playing with this one for a while but cant figure it out. Please see file. Also the array wont work if there is a gap in the data. The data needs to be in the final list (green) in order and only one of each can show. Basically I want to show only one of each value or item and then find the sum of that value.

    Thanks
    Attached Files Attached Files
    Last edited by JK1234; 01-05-2010 at 08:04 PM. Reason: converter wont work

  2. #2
    Forum Contributor
    Join Date
    07-06-2008
    Location
    NC
    Posts
    149

    Re: Need formula instead of sorting

    Just found out that I can not use an array formula.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Need formula instead of sorting

    Not exactly sure what you want. I suspect your sample workbook may not be truly reflective of your actual workbook. If it is not then the suggestions below may not be what you need, in which case upload a workbook that does reflect your real structure and type of data.

    However, the attached show two possible solutions.
    1. Formula: ="item "&ROW() -- and -- =SUMIF($B$19:$B$28,$F1,$C$19:$C$28)

    2. Pivot Table (no blank rows or columns allowed)
    Attached Files Attached Files
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Forum Contributor
    Join Date
    07-06-2008
    Location
    NC
    Posts
    149

    Re: Need formula instead of sorting

    Thanks for response but I can not use pivot tables either.

    And the other version does not work either. The file must work with blank spaces.The actual file starts at B18:C30

    Then what i need is them in order like G19:H22.

    I will have blank spaces and need them to print out (in order) only one instance of each and then total that.
    Attached Files Attached Files

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Need formula instead of sorting

    You're really limiting yourself by not using Pivot Tables and performing a sort on the data. Why these limitations (or preferences)?

    I see your results table is in alphabetical order and this is not easily accomplished with a formula, especially given multiple entries exist.

    You could used Advance Filter to extract a list of unique values (for the item names), copied to a new location and then perform the sum using SUMIF.

    Or, considering sorting the original data in place, forcing blanks to the bottom and then using the built-in SUBTOTAL feature which will allow you to collapse the rows and show only the totals.

    I don't understand why you aren't taking advantage of the applicable tools to get the results you need. Use a separate worksheet if necessary so that the original data is untouched.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-06-2008
    Location
    NC
    Posts
    149

    Re: Need formula instead of sorting

    I am using the excel file to create other pages - like HTM. So the excel version is for some and htm is for others. And there is alot to maintain so doing one in excel in one way and the other in another wont work. Alot easier to build in excel and then transposed page over into htm or asp.
    So what works in excel has to work in htm.

    This is actually working well except some of the functions wont convert/switch over so my I am looking for functions instead of my vb/tables/macros that I am using.

    I think this problem may not get fixed for this page.

+ 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