+ Reply to Thread
Results 1 to 3 of 3

If and sum function

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    Malaysia
    MS-Off Ver
    Ms office 2010
    Posts
    1

    If and sum function

    Hi there,

    I looking for formula for a solution as below:

    If cell b2 is empty do nothing, if cell b2 contains anything then sum cell a2.
    Entire column A:A is empty too.

    Basically this if for numbering
    Column A
    exm 1 (if b2 contains anything)
    - (if b3 contains nothing)
    2 (if b4 contains anything)
    - (if b5 contains nothing)
    3 (if b6 contains anything)
    Last edited by sruban; 09-21-2016 at 04:01 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If and sum function

    It sounds like you're asking for:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    But this will return a blank value, if column A:A is empty? It's not entirely clear what you want!
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,628

    Re: If and sum function

    IN A2 , then drag down.
    =IF(B2="","",MAX($A$1:$A1)+1)

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  3. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  4. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  5. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  6. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 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