+ Reply to Thread
Results 1 to 6 of 6

Multiplication of two cells and compare to a third, then auto increment a fourth

  1. #1
    Registered User
    Join Date
    11-21-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    0ffice 365
    Posts
    3

    Multiplication of two cells and compare to a third, then auto increment a fourth

    New to the forum and would appreciate any help that can be offered.

    I am trying to figure out a formula for the following:

    Final implementation is more but in essence, I am trying to achieve the following:

    I have four columns. I would like to multiply the values in column A & B and take the result and compare it to column C. If less than or equal to the value in Column C then increment by 1 the value of Column D until the result of A & B is greater than column C.

    So if column A is 2 and column B is 100 and column C is 1000, column D would calculate it takes 6 times for 2*100 to be greater than Column C @ 1000.

    I was trying to do this with a single function in Column D but..... any advice would be greatly appreciated.

    William

  2. #2
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Multiplication of two cells and compare to a third, then auto increment a fourth

    PHP Code: 
    d1=a1*b1*(roundup(c1/b1/a1,0)+if(mod(c1,b1*a1)=0,1,0)) 
    Last edited by tamthat; 11-21-2016 at 11:34 PM.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Multiplication of two cells and compare to a third, then auto increment a fourth

    Or try this ...

    =A2*B2*(ROUNDDOWN(C2/B2/A2,0)+1)

  4. #4
    Registered User
    Join Date
    11-21-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    0ffice 365
    Posts
    3

    Re: Multiplication of two cells and compare to a third, then auto increment a fourth

    Thank you both. Both of the formula's are giving me the same incorrect result.

    Based on the example above: If column A is 2 and column B is 100, and column C is 1000. How many times do I have to multiply column A and B to be greater than column C. The answer I am looking for is 6, but the results for both formulas is giving me 1,200.

    ((A*B)*column D) > C. So the I would have to multiply 2 x 100, 6 times to be greater than 1000. That is what I am trying to do.

    Thanks all for your help.

    William

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,221

    Re: Multiplication of two cells and compare to a third, then auto increment a fourth

    Try

    =(ROUNDDOWN(C2/B2/A2,0)+1)

  6. #6
    Registered User
    Join Date
    11-21-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    0ffice 365
    Posts
    3

    Re: Multiplication of two cells and compare to a third, then auto increment a fourth

    Cannot believe it was that simple. Thank you!

+ 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] How To Compare Two Cells and Increment Another
    By ajocius in forum Excel General
    Replies: 1
    Last Post: 10-04-2014, 03:47 PM
  2. [SOLVED] Compare text in three cells, return with yes or no in fourth cell
    By dawsonsoo in forum Excel General
    Replies: 3
    Last Post: 07-10-2014, 03:47 PM
  3. Compare two cells and "print" data in third cell to fourth cell
    By Timpe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 03:36 AM
  4. Replies: 0
    Last Post: 06-14-2013, 01:36 PM
  5. Need to auto increment and update PO # and save file as cells H7,J7, and A14
    By carson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-08-2012, 01:35 PM
  6. Copy Forms (combo boxes & checkboxes) down many cells & auto. increment cell links
    By tones321 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2007, 12:52 PM
  7. How do I auto increment cells so that I may maintain a history?
    By docfroggie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2005, 04: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