Results 1 to 12 of 12

[SOLVED] Count number of empty cells and sum up too the first non-empty cell.

Threaded View

  1. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: [SOLVED] Count number of empty cells and sum up too the first non-empty cell.

    Here's something else for you to consider (I implemented everything through row 100):

    Data Validation
    Highlight B2:B100 > Data > Data Validation > Allow: List > Source: =Ingredients!$A$2:$A$30 > OK

    Conditional Formatting
    Highlight A2:AI100 > Conditional Formatting > New Rule > Use a formula
    =$B2="Total"
    Format: Grey fill with bold font

    Formulas
    D2 =IFERROR(E2*4+F2*9+G2*4,"")
    E2 =IFERROR(IF($B2="Total",SUM(E1:E$2)-SUMIF($B1:$B$2,"Total",E1:E$2)*2,VLOOKUP($B2,Ingredients!$A$1:$AG$29,COLUMN(A$1)+2,FALSE)*$C2),"")

    Drag the formula in E2 through AI2 and then highlight D2:AI2 and drag down through row 100.

    See attached workbook for clarification.
    Attached Files Attached Files
    Last edited by 63falcondude; 11-28-2017 at 12:06 PM. Reason: Typo

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Is it possible to count only the number of empty cells when using autofilter?
    By chief_abound in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2017, 09:59 PM
  2. [SOLVED] Loop That Will Count Number Of Comments In a Column Between Empty Cells
    By M7A0S8T8E5R in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2016, 04:32 PM
  3. Replies: 5
    Last Post: 02-01-2016, 05:57 PM
  4. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  5. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  6. Count the number of cells in a range that are not empty
    By efernandes67 in forum Excel General
    Replies: 5
    Last Post: 07-23-2010, 05:41 AM

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