+ Reply to Thread
Results 1 to 8 of 8

Formula to copy specific data if certain conditions are fulfilled

  1. #1
    Registered User
    Join Date
    02-05-2016
    Location
    Kigali
    MS-Off Ver
    excel 2007
    Posts
    21

    Formula to copy specific data if certain conditions are fulfilled

    Hi guys,

    I have constant related data in column A and column B.
    I want a formula in column E that would look at the value in column D and copy it if it matches a value from column A, if it doesn't match I want it to copy the closest greater value from column A. (Cells D13 & D14 are the only ones matching data from column A).
    I also want a formula in column F to copy a value from column B that corresponds to the value from column A copied to column E.

    In the attached workbook, you'll see how I want column E and F to look like.

    Thanks for your help,

  2. #2
    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
    53,048

    Re: Formula to copy specific data if certain conditions are fulfilled

    Try this, copied down...
    =VLOOKUP(E2,$A$2:$B$43,2,0)
    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

  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
    53,048

    Re: Formula to copy specific data if certain conditions are fulfilled

    Try this, copied down...
    =VLOOKUP(E2,$A$2:$B$43,2,0)

  4. #4
    Registered User
    Join Date
    02-05-2016
    Location
    Kigali
    MS-Off Ver
    excel 2007
    Posts
    21

    Re: Formula to copy specific data if certain conditions are fulfilled

    Thanks Ford, it works perfectly for column F.

    What formula should I use for column E?

  5. #5
    Registered User
    Join Date
    02-05-2016
    Location
    Kigali
    MS-Off Ver
    excel 2007
    Posts
    21

    Re: Formula to copy specific data if certain conditions are fulfilled

    Any formula for column E Mr. Ford?

  6. #6
    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
    53,048

    Re: Formula to copy specific data if certain conditions are fulfilled

    Sorry, missed that part. Try this, copied down...
    =INDEX(A:A,MATCH(D2,A:A,-1))

  7. #7
    Registered User
    Join Date
    02-05-2016
    Location
    Kigali
    MS-Off Ver
    excel 2007
    Posts
    21

    Re: Formula to copy specific data if certain conditions are fulfilled

    Thanks Ford, it works perfectly.

    Sorry for the duplicate, I thought you had gone offline.

  8. #8
    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
    53,048

    Re: Formula to copy specific data if certain conditions are fulfilled

    Not a problem (I actually was afk for a while), glad it worked for you, thanks for the feedback

+ 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] Formula to retrieve specific data if certain conditions are fulfilled
    By joel.mugabe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2016, 04:52 AM
  2. [SOLVED] Attribute a specific number to a specific cell if conditions are fulfilled
    By joel.mugabe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2016, 10:16 AM
  3. Replies: 1
    Last Post: 09-09-2014, 10:47 AM
  4. [SOLVED] How to fill a cell with formula if condition fulfilled
    By ruliansyah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2013, 05:29 AM
  5. [SOLVED] Copy cell to specific locations based on certain conditions
    By aviatecar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2012, 12:52 PM
  6. Replies: 1
    Last Post: 03-05-2010, 03:00 PM
  7. Choosing a formula to used based on a codition fulfilled
    By The Big Dog in forum Excel General
    Replies: 1
    Last Post: 10-12-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