+ Reply to Thread
Results 1 to 5 of 5

IF formula that can take account of rows order

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    13

    IF formula that can take account of rows order

    Hello guys,

    Can you please help me with the following issue:
    I have 2 item components for which i want to calculate the difference between a 1 time payment vs several installments option. The two components however are not consecutively distributed therefore sometimes the formula has to consider bottom row, sometimes the row above.
    Example:
    NR. time P1 P2
    310 1 0 420 - here I can put an IF P1=0, then calculate 420 - (10*14) - ok
    310 10 14 0 - here the else of the above IF would give result "0" - ok

    163 20 20 0 - but here I cannot use the above formula because the cell are not in the same order.
    163 1 0 590

    315 17 14 0
    315 1 0 420

    939 1 0 425
    939 14 14.5 0


    Can you please help me with a smart formula that can go through the list and retireve the relevant result?

    Thank you very much!

    George
    Last edited by George_1990; 10-20-2016 at 02:00 PM. Reason: Message from Admin

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: smart if

    It is impossible to tell what is in which column....

    Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: smart if

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

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

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-03-2013
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: IF formula that can take account of rows order

    Hi,
    Here is a sample file.

    Thanks for your help

    I will change the thread name right awa
    Thank you
    Attached Files Attached Files
    Last edited by George_1990; 10-20-2016 at 02:00 PM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: IF formula that can take account of rows order

    If this is NOT what you want, please tell us what ALL your expected answers are:

    =IF(C2=0,B3*C3,IF(C2<>0,0,B1*C1))

+ 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] Smart Sorting
    By ejoneslor in forum Excel General
    Replies: 2
    Last Post: 10-06-2015, 03:53 AM
  2. [SOLVED] How to I add Smart Tag that was removed?
    By docexcel in forum Excel General
    Replies: 2
    Last Post: 04-27-2006, 06:55 PM
  3. [SOLVED] I'm amazed at how smart you all are
    By crimsonkng in forum Excel General
    Replies: 2
    Last Post: 04-14-2006, 05:25 PM
  4. [SOLVED] smart tags
    By scubagal in forum Excel General
    Replies: 4
    Last Post: 03-06-2006, 05:45 AM
  5. Any body out there smart enough???
    By JR573PUTT in forum Excel General
    Replies: 9
    Last Post: 02-15-2006, 03:34 PM
  6. Smart Tags
    By MerlinTX in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2006, 06:50 PM
  7. Smart SUM
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 02-02-2005, 08:49 AM

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