+ Reply to Thread
Results 1 to 9 of 9

Using array formula instead of creating a helper column

  1. #1
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Using array formula instead of creating a helper column

    Hi Excel folks, would appreciate some help on whether I can cut down a step of creating a helper column by using an array formula (or any other method but not VBA)? Currently I'm using a helper column and sumproduct with a double negative (--) (to get a sumproductif formula). However, I'm looking to cut down as many steps as possible because my table is large, and I want to filter it on the go (hence will need a formula that won't mess up when I filter the table). Thanks a million!!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using array formula instead of creating a helper column

    How is column E calculated?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Using array formula instead of creating a helper column

    Column E is a hard-coded number. Background: It's the return on the stock in said row.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using array formula instead of creating a helper column

    But your explanatory text in the file states:

    "Can I get the numbers in B14:B16 without creating column E which is the helper?"

    But if those values are hard-coded, and so we don't know how they are derived, how can we expect to generate results without using them?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Using array formula instead of creating a helper column

    Oh sorry! Column D is the helper row.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using array formula instead of creating a helper column

    Edited, response was to column E as the helper, not D

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using array formula instead of creating a helper column

    Just replace $D$2:$D$10 with an extended version of your current formulas in that column, i.e. in B14:

    =SUMPRODUCT(--($B$2:$B$10=A14),$C$2:$C$10/SUMIF($B$2:$B$10,$B$2:$B$10,$C$2:$C$10),$E$2:$E$10)

    Regards

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using array formula instead of creating a helper column

    Try in B14

    =SUMPRODUCT(($B$2:$B$10=A14)*$E$2:$E$10*INDEX($C$2:$C$10*($B$2:$B$10=A14)/SUMIF($B$2:$B$10,A14,$C$2:$C$10),0))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  9. #9
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Using array formula instead of creating a helper column

    This works. Thanks a mil!

+ 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] Removing helper columns, need array substitute (attachment)
    By ottoex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2014, 05:13 AM
  2. Need help with helper column results
    By ksliger in forum Excel General
    Replies: 6
    Last Post: 02-19-2014, 05:34 PM
  3. Array Formulas instead of helper columns
    By ElmerS in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-25-2009, 03:52 PM
  4. help creating helper column
    By Allen Clark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 12:20 AM
  5. [SOLVED] What is a helper column?
    By RMPPOD in forum Excel General
    Replies: 3
    Last Post: 01-28-2005, 04:06 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