+ Reply to Thread
Results 1 to 5 of 5

Problem finding a complex formula

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    Venezuela
    MS-Off Ver
    2021
    Posts
    3

    Unhappy Problem finding a complex formula

    Hi, I'm a noob over here, I was doing a excel sheet to autocalculate the altitude of a terrain and I have the next problem:

    On the Sheet I have the following data:

    Some Distances Called "Progresiva en el Plano (Pg) (13:14A)

    These will go on each 20 meters From Range (A15:A Infinite)

    Then On top I put the data so that I will calculate the Slope (P) depending on the (Pg,X) (Cell Range C4:C9)

    Then the problem arraises, and I can't find a formula for the next scenario:

    the " Progresiva Absoluta (Pr)" data will sum 20 to the cell before that, up to the (Pg) value reach (Pg,X), then after that value, the (Pr) values will start at 20 again.

    On Cell A:42 stops and gives + 20 m (Notice it should be + 540 m not + 20 m)

    I used this formula but I'm confused of how can I applay MATCH, INDEX and VLOOKUP to this.

    I Used the next formula: but I got messed up:

    =IF(A16=VLOOKUP(B15,C4:C9,1,FALSE),B15+20,IF(A16>SMALL(C$4:C$9,1+COUNTIF(C$4:C$9,"<="&B15)),20,IF(A16=SMALL(C$4:C$9,2+COUNTIF(C$4:C$9,"<="&B15)),B15+20,B15+20)))

    Any help regarding of a way (or a done formula that I can just drag down and keep calculating as I have more Values of (Pg,X)
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by eduardo11791; 07-02-2014 at 02:09 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Problem finding a complex formula

    find the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Problem finding a complex formula

    Welcome to the forum.

    Pls take some minutes to read forum rules because(in this case):

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Problem finding a complex formula

    @nflsales

    Maybe you can (in the future) also add the formula on the forum, so other forummembers don't have to look at the given solution.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Problem finding a complex formula

    Mr oeldere, i couldn't get 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. Formula needed based on 2 conditions & variable row reference
    By fantoosh420 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2014, 05:46 AM
  2. [Solved] VBA Vlookup and complex Formula problem
    By Bansheete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2013, 08:23 AM
  3. [SOLVED] Problem solving complex if/and/or formula
    By dab37843 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-12-2012, 10:46 AM
  4. [SOLVED] Complex if/and formula problem
    By dab37843 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2012, 01:21 PM
  5. Problem complex SUMPRODUCT formula
    By Bohk in forum Excel General
    Replies: 0
    Last Post: 05-02-2011, 04:40 PM

Tags for this Thread

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