+ Reply to Thread
Results 1 to 7 of 7

Sumproduct large for every other cell in a specific range.

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Sumproduct large for every other cell in a specific range.

    Hi,

    I used SUMPRODUCT LARGE TO calculate the 5 largest golf scores (discounting the biggest) for each person in a golf group.

    The code looks like this

    Please Login or Register  to view this content.
    The issue I have is that I now only want to get the same answer but for every other cell in the range starting with B6 and ending with AF6, it needs to ignore everything in the alternate cell i.e C6,F6,H6 all the way to AG6.

    The code I thought might work to do this returns VALUE! it is as follows

    Please Login or Register  to view this content.
    P.s I have moved the formula to the same worksheet hence missing the 'Stableford scores Summer 2018'!.

    Any help would be most appreciated.

    J.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Sumproduct large for every other cell in a specific range.

    =if(countif(b6:af6,"<""")>0,"",sumproduct(large(--(mod(column(b6:ag6),2)=0),{2,3,4,5,6})))

  3. #3
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumproduct large for every other cell in a specific range.

    Thank you for the formula Tim. The workbook is something which records a group of golfers weekly scores, sometimes if the weather has closed the course then we can't play. On these occasions there will be nothing in both the score column (which forms part of the sumproduct large and also the column next to it.

    I used your formula and it doesn't come up with any errors which is nice but is not working anything out for the nest 5 scores (cell is blank).

    B6 C6 D6 E6 F6 G6 H6 I6 J6 K6 L6 M6 N6 O6 P6 Q6 R6 S6 T6 U6 V6 W6 X6 Y6 Z6 AA6 AB6 AC6 AD6 AE6 AF6 AG6
    39 2 35 1 23 7 31 3 29 6 32 2 23 6 33 2 33 4 27 4 26 6 23 5 33 3

    The smaller figures are what position that person ended up on the given day which is why I need it to not count that column but it also needs to ignore anytime when we haven't played.

    snipe.JPG
    Last edited by lambi15; 06-12-2018 at 12:15 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Sumproduct large for every other cell in a specific range.

    Please note: this is NOT code - code is something else. This is a formula.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumproduct large for every other cell in a specific range.

    Sorry Ali. Will do better next time ;-)

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Sumproduct large for every other cell in a specific range.

    Jolly good!

    Joking apart, if you ask for code, and get code, when in fact you want a formula, you'll be up the creek without a paddle. Just sayin' ...

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Sumproduct large for every other cell in a specific range.

    Hi Lambi,

    It is always better to attach a workbook for your problem. I can't tell if the players names are the rows or if the rows are the dates you played. Your picture doesn't display enough for me to tell. If you give us an attached example, I'm sure we can do a formula.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] VBA to replace cells containing specific text in a large range with an array formula
    By DaveBre in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-22-2016, 01:21 AM
  2. VBA to automatically change specific cell value to active cell in specific range
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2016, 04:53 PM
  3. Find the sum of specific cell ranges in large databases
    By spikey_jack in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2015, 11:49 AM
  4. Speed up sumproduct for large data range
    By cmb80 in forum Excel General
    Replies: 4
    Last Post: 07-21-2014, 01:44 PM
  5. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  6. [SOLVED] how to stop Command button If specific number is entered in a specific cell range
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 05:10 AM
  7. [SOLVED] SUMPRODUCT Within A Specific Date Range
    By BoardGuy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2013, 04:19 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