+ Reply to Thread
Results 1 to 7 of 7

Need Calculation to start before the formula

  1. #1
    Registered User
    Join Date
    11-30-2020
    Location
    Canada
    MS-Off Ver
    20
    Posts
    6

    Need Calculation to start before the formula

    Sorry about the title. I am not sure how else to describe it.

    In the sample worksheet, B column searches for a value in A column between the inputs in D1 and G1. Once a B cell finds a value between the two inputs it starts to do a calculation (B? * I1).

    In the sample the first result is 400 in B11. Rather than getting 400 I need B11 or whatever cell falls between D1 and G1 to begin calculating from A4 (A4*I1)

    Ideal output is in C11 etc.

    This is a horrible explanation and I apologize. I am not sure how else to explain it.

    Using Office 365
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Need Calculation to start before the formula

    Apologies, idea posted originally didn't work.

    Ochimus
    Last edited by Ochimus; 12-01-2020 at 08:49 PM.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Need Calculation to start before the formula

    If I understand correctly, it seems like it should be as simple as replacing the one A11 reference with A4
    current formula in B11 =if(and(A11>=$D$1,A11<=$G$1),$I$1*A11,"")
    replace with =if(and(A11>=$D$1,A11<=$G$1),$I$1*A4,"") in B11 and copy/paste/fill down.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Need Calculation to start before the formula

    Named ranges
    C.1 =Sheet1!$I$1
    Length =Sheet1!$A$4:$A$101
    Length.End =Sheet1!$G$1
    Length.Start =Sheet1!$D$1
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by protonLeah; 12-01-2020 at 09:35 PM.
    Ben Van Johnson

  5. #5
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Need Calculation to start before the formula

    This now works. Put in A4 and pull down.

    =IF(AND(A4>=$D$1,A4<=$G$1,B3<>""),B3+(A4-A3)*I$1,IF(AND(A4>=$D$1,A4<=$G$1,B3=""),A$4*I$1,""))

    If the value in Col A is outside the parameters, Col B is blank.
    If it is the first match in Col A, Col B multiplies A4 by the C1 number.
    If Col B has a value in the row above, take the value in Col A, deduct the value above it, multiply the difference by the C1 value, and add the value in the previous Col B row

    Ochimus.
    Last edited by Ochimus; 12-01-2020 at 09:37 PM.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: Need Calculation to start before the formula

    Try in C4:

    Please Login or Register  to view this content.
    Drag down.
    Quang PT

  7. #7
    Registered User
    Join Date
    11-30-2020
    Location
    Canada
    MS-Off Ver
    20
    Posts
    6

    Re: Need Calculation to start before the formula

    These are all great options. You are all brilliant! Thank you for your help.

+ 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. Replies: 3
    Last Post: 12-11-2018, 12:44 PM
  2. Perform calculation on multiple matches ... where to start?
    By GraysonRobbins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-21-2016, 01:20 PM
  3. [SOLVED] Dynamic calculation based on individual start and end dates
    By Cunner in forum Excel General
    Replies: 7
    Last Post: 01-06-2016, 10:05 AM
  4. [SOLVED] Multi Calculation from start row/end row formula?
    By davidpierce in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-13-2015, 10:03 AM
  5. [SOLVED] Basic Calculation of Start - End Time
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2015, 02:29 PM
  6. Start End Date calculation
    By chamdan in forum Excel General
    Replies: 3
    Last Post: 11-12-2008, 01:18 AM
  7. [SOLVED] random start and calculation
    By Mona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2006, 10:10 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