+ Reply to Thread
Results 1 to 6 of 6

Column Function to Render Zero

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Column Function to Render Zero

    Hello

    I have this formula entered in a cell

    =SUMPRODUCT(($D$4:$BK$4=COLUMN(A$1))*($D34:$BK34))

    when i scroll right i get the following formula and so on:
    =SUMPRODUCT(($D$4:$BK$4=COLUMN(B$1))*($D34:$BK34))

    Column(A$1) renders 1 and Column (B$1) renders 2 and so on

    I now introduced column zero and want to scroll left what column function should i use to render zero?

    This is what i got when i filled to the left:
    =SUMPRODUCT(($D$4:$BK$4=COLUMN(#REF!))*($D34:$BK34))
    Many thanks,

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Column Function to Render Zero

    and what letter has column Zero (letter A)?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Column Function to Render Zero

    My Column Zero is in Excel Column C

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Column Function to Render Zero

    If you have the formula below in column D

    =SUMPRODUCT(($D$4:$BK$4=COLUMN(D$1))*($D34:$BK34))

    you can pull the formula to the left and you get this formula.

    =SUMPRODUCT(($D$4:$BK$4=COLUMN(C$1))*($D34:$BK34))

    So i don't get your problem.

    There won't be column Zero (because it never exist).

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Column Function to Render Zero

    start with =SUMPRODUCT(($D$4:$BK$4=COLUMN(A$1)-1)*($D34:$BK34))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Column Function to Render Zero

    Martin's suggestion resolved the problem, I dont have the formula you mentioned in column D it's in a different table and the original range/array is in that table but thanks

+ 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