+ Reply to Thread
Results 1 to 9 of 9

Cell value multiplication, by criteria.

  1. #1
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84

    Cell value multiplication, by criteria.

    Hello, I am looking for a formula, which could multiply the QTY colum, with all subquantities and write values to Total QTY.
    The value would be taken from row where exists Part Number, and muliplied as in the example. Maybe someone has an idea how to make this function?
    Thank you!
    prb_01.jpg
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Cell value multiplication, by criteria.

    Please try at I2

    =IF(C2="","",VLOOKUP(INT(A2),A$2:D2,4,)*D2)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84

    Re: Cell value multiplication, by criteria.

    thank you, Bo_Ry, for your answer.
    i get errors, when something is changed in Number (A) column (which should not have any connection in this function)

    prob_22.jpg
    Attachment 735362

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

    Re: Cell value multiplication, by criteria.

    You are changing the way things were presented at first.
    Why change 1 to 3 and leave the others unchanged?

  5. #5
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84
    Quote Originally Posted by Pepe Le Mokko View Post
    You are changing the way things were presented at first.
    Why change 1 to 3 and leave the others unchanged?
    Hello,
    The first column can be changed any time amd they ahould not be a part of the formula.
    I showed arrows in the main post, which cells are the keys.
    When B cell has a value(any value) its quantity (D) is multiplied to every D cell that has no B cell value and pasted in total quantity area of each row.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Cell value multiplication, by criteria.

    Try

    =IF(C2="","",LOOKUP(2,1/(C$2:C2=""),D$2:D2)*D2)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84

    Re: Cell value multiplication, by criteria.

    Thank You Bo_Ry. It works little differently than I expected, but it works!
    And it's a real respect for you to come up with this formula.
    I can't seem to figure it out how this part works:
    LOOKUP(2,1/(C$2:C9="")

    just that when there is no value in description, this part determines to use that qty input.. but what is 2,1? it is a maze to me totaly
    Last edited by windzz; 06-06-2021 at 01:46 AM.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Cell value multiplication, by criteria.

    Please check this
    https://exceljet.net/formula/get-val...non-empty-cell

    but don't use the whole column A:A as in the link.

  9. #9
    Registered User
    Join Date
    09-15-2020
    Location
    Lithuania
    MS-Off Ver
    2019
    Posts
    84

    Re: Cell value multiplication, by criteria.

    Bo_Ry, I would like to thank you again! for help! And I want to apologize, because I was certainly unclear about my request in this thread.

    Can I ask to look into this excel file one last time? I fell like it is almost working, but need that "last push".

    I have tried using:
    =IF(B2="",LOOKUP(2,1/(NOT(ISBLANK(B$2:B2))),D$2:D2)*D2,"Empty Cell")
    and
    =IF(B3="",LOOKUP(2,1/(B$2:B3<>""),D$2:D3)*D3,"Empty Cell")

    it works until the 1st number and then it just shows empty cells.

    prob.last.jpg

    and I really thank you for your time and help!
    Attached Files Attached Files

+ 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] Multiplication with Criteria
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2017, 10:29 AM
  2. [SOLVED] Multiplication with an empty cell
    By Tsetsko in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2017, 02:28 PM
  3. Multiplication of several numbers in one cell
    By dinahajjar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2014, 05:00 AM
  4. multiplication in one cell but result in another??
    By excsal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2014, 01:43 AM
  5. [SOLVED] Cell multiplication mystery
    By krookra in forum Excel General
    Replies: 3
    Last Post: 05-02-2012, 10:14 AM
  6. Replies: 6
    Last Post: 08-05-2009, 05:14 AM
  7. Multiplication in one cell
    By Need to Multiply within one cell in forum Excel General
    Replies: 1
    Last Post: 06-22-2005, 12:05 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