+ Reply to Thread
Results 1 to 5 of 5

Multiply multiple columns with blank values, ignore

  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    546

    Multiply multiple columns with blank values, ignore

    I dont know why this is so difficult but In the attached file you will find a table which I would like to perform a multiplcation formula but to multiple columns and some are non-adjacent. This issue I am running into is that column G,H,I,J has null values which is creating an error. The other issue I am running into is if there are no values in column G,H,I,J and there is a value in column M or O. It will make the formula in column N or column P = 0 and I would just like the value of M or O if this is the case.


    Requesting 2 formulas in column N and in column P

    1. Column N:
    Multiply g,h,i,j,l,m


    2. Column P
    Multiply column G,H,I,J,L,O

    Examples of formula output.

    Line 22, the result value in N and P should be 0.16.

    Line 4, the formula out put for both columns should be 0
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Multiply multiple columns with blank values, ignore

    Line 22, the result value in N and P should be 0.16.
    How can you obtain these results as e.g. G22 =0 ? The product would be 0, not 0.16
    It is not the null values that throw the error, it is the empty text string in col I
    So, some more explaining of your expected results would help

  3. #3
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    546

    Re: Multiply multiple columns with blank values, ignore

    I removed 0 values from column G inthe file and reattachedto make it easier. I will do this in my master file.


    Here are the parameters:


    1. Ignore blanks in column g,H,I,J and only use numerical values to multiply together.
    2. If there are values greater than 0 in column L but Column M displays zero then equal 0.


    Esentially Multiply G,H,I,J,L,M BUT if there are 0 values in M or O then display 0.

    I hope I did a better job this time.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,003

    Re: Multiply multiple columns with blank values, ignore

    Maybe,

    N2 =PRODUCT(IF(G2:J2<>"",G2:J2,1),L2,M2)
    P2 =PRODUCT(IF(G2:J2<>"",G2:J2,1),L2,O2)

    commited by Ctrl+Shift+Enter. copied down.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Multiply multiple columns with blank values, ignore

    Cell N2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell P2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Multiply based on Number of Non-Blank Columns
    By positivemind in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2022, 10:09 AM
  2. ignore blank values when looping
    By light in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-08-2020, 08:56 AM
  3. [SOLVED] Multiply & ignore 0 ( blank ) Cells
    By medicated in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-10-2017, 11:34 AM
  4. [SOLVED] How to ignore blank cells while concatenating multiple cell values
    By RASARO72 in forum Excel General
    Replies: 15
    Last Post: 12-30-2016, 03:13 AM
  5. [SOLVED] Ignore Blank Values While Using INDEX
    By jokorey in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2014, 01:58 PM
  6. [SOLVED] Ignore If Blank & check multiple cells for equal values
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-25-2013, 04:46 AM
  7. Replies: 3
    Last Post: 06-26-2012, 06: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