+ Reply to Thread
Results 1 to 5 of 5

Ignore blank cell to give give non zero result

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    24

    Ignore blank cell to give give non zero result

    Hi,
    I have a sheet where in four cells in a row is to be multiplied. As the data gets populated there can be a blank cell in same row but the formula should still calculate and give the results for three cells ignoring the empty cell as zero otherwise the entire result is shown zero since all the three cells are multiplied by zero.
    Example
    Row 1 data is A1=2, B1=3, C1=blank, D1=4 F1=2*3*blank*4=24
    Row 2 data is A2=4, B2=blank, C2=5, D2=2 F2=4*blank*5*2=40

    As shown above I need this type of calculation. What I am getting is zero in F column as C1 is blank in first row and B2 is blank in second row.
    Why I want is so that excel should give me correct non zero result if I drag the cell formula to all below cells.

    File attached with measurement sheet is where I want to work on.
    Any help will be appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Ignore blank cell to give give non zero result

    Try:

    =PRODUCT(D2,F2:H2)

    copied down...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Ignore blank cell to give give non zero result

    If you have blank cells, not cells with 0 values in, then use Product:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you have zero values, then use this array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter it with Ctrl-Shift-Enter - you should see curly brackets {} around the formula in the formula bar - if you don't, you'll get a #VALUE! error, so just click into the formula bar and use C-S-E again.

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Registered User
    Join Date
    08-12-2010
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    24

    Thumbs up Re: Ignore blank cell to give give non zero result

    Quote Originally Posted by Glenn Kennedy View Post
    Try:

    =PRODUCT(D2,F2:H2)

    copied down...
    OMG, Was it that simple!!!! Hell I didn't know that. Thank a lot Glenn.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Ignore blank cell to give give non zero result

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] condition formatting give the colour at the cell with the result
    By davide2574 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 01-12-2016, 04:39 AM
  2. Replies: 12
    Last Post: 09-19-2014, 10:18 PM
  3. [SOLVED] using a max formula on a column with no data to give a Blank result
    By Brentsa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2013, 05:42 AM
  4. [SOLVED] i have multiple lookup in my excel, its give result "0" i want blank outpu.
    By vengatvj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-25-2013, 02:05 PM
  5. VLookup to give Blank result
    By mrcois in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2010, 11:50 AM
  6. How do I get a cell to give a result based on the month we are in?
    By SHBmgr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2006, 05:55 PM
  7. entering a26-02 into a cell give strange result
    By Anthony in forum Excel General
    Replies: 1
    Last Post: 01-27-2005, 07:06 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