+ Reply to Thread
Results 1 to 7 of 7

identify specific cells in column possibly using count, offset, vlookup

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    identify specific cells in column possibly using count, offset, vlookup

    I've attached a sample worksheet with 3 columns (B, C and D). What I need to do is get the answers in D (dark blue cells) without having to hard-code the formulas. I can't use a pivot table for this since this is going to be part of a workbook which has additional worksheets and lots of formulas which will be recalculated through multiple iterations using Solver.

    I suspect the formula would involve Count, Offset and/or Vlookup, but not sure.

    Please feel free to ask questions if this needs clarification, but I believe that if you look at the workbook, you'll immediately see what I'm referring to.


    Thanks so much!
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: identify specific cells in column possibly using count, offset, vlookup

    Sorry, can you show how you're arriving at example values in column D. Not sure what's being subtracted from what.
    Please just upload a revised workbook. Thanks-Lee

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: identify specific cells in column possibly using count, offset, vlookup

    Sorry about that! My brain isn't working too well today. I've modified the worksheet which now hopefully explains what I'm trying to do.

    If you click on the numbers you see in column D you'll see my desired numbers.

    I've also posted some notes on the worksheet which go into further detail.

    Its beginning to become clear to me that the solution will involve something which "finds" the row number of the most recent
    number in column D, then sums everything in column C down to the row number of the formula itself.

    Hope that makes sense.

    Thanks !
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: identify specific cells in column possibly using count, offset, vlookup

    Try placing the following formula in cell D10 and drag-copying it down as needed:

    =IF(C10=0,"",SUM(INDEX(B:B,LOOKUP(2,1/(C$1:C9<>0),ROW(C$1:C9))):B9)-C10)
    Last edited by Root_; 08-13-2017 at 09:10 PM.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: identify specific cells in column possibly using count, offset, vlookup

    Hi all- Paste this in D9 and copy down:
    =IF(C9,SUM(INDEX(B$8:B8,MATCH(1,INDEX(0/(C$8:C8>0),))):B8)-C9,"")

  6. #6
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: identify specific cells in column possibly using count, offset, vlookup

    Thanks to both of you!

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: identify specific cells in column possibly using count, offset, vlookup

    You're most welcome, and thank you for the rep!

+ 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. Using vlookup and possibly if to populate cells
    By jaffacakes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2016, 08:27 AM
  2. Replies: 9
    Last Post: 04-28-2014, 02:38 PM
  3. [SOLVED] Need help with INDEX possibly OFFSET formula
    By Smbgp3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2013, 04:02 PM
  4. Replies: 5
    Last Post: 05-09-2012, 02:30 PM
  5. Count specific cells in a column
    By martins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2008, 12:09 PM
  6. Replies: 2
    Last Post: 11-16-2007, 10:36 AM
  7. [SOLVED] search column of text cellto identify those cells with specific w
    By Ross Headifen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2006, 09:55 AM

Tags for this Thread

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