+ Reply to Thread
Results 1 to 6 of 6

Excel formula to retreive data from two cells with certain conditions

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Thumbs up Excel formula to retreive data from two cells with certain conditions

    cell: A1 = 1st data
    cell: B1 = 2nd data

    cell: C1 = 3rd data




    1. If A1 = 85 (exact 85 only)
    and if B1= < 25
    then c1 = 0.21

    or if B1= >25 and <= 30
    then c1 = 0.32

    2. If A1 >=1 and < 85
    and if B1= < 25
    then c1 = 0.32

    or if B1= >25 and <= 30
    then c1 = 0.32

    3. If A1 >85 <=90
    and if B1= < 25
    then c1 = 0.41

    or if B1= >25 and <= 30
    then c1 = 0.52

    4. If A1 >90 <=95
    and if B1= < 25
    then c1 = 0.67

    or if B1= >25 and <= 30
    then c1 = 0.78

    5. If the loan percentage is >95 <=100
    Return value = "NA"

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Excel formula to retreive data from two cells with certain conditions

    Untested,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For the last condition, i.e. If the loan percentage is >95 <=100, then return value = "NA" I've used cell A1. You need to correct it accordingly if required.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Excel formula to retreive data from two cells with certain conditions

    Hi! Sarang

    Thank you for the reply!

    I tried your formula, but could not get the actual results.

    I just posted some sample numbers:
    formula.JPG


    I would be grateful if you could correct the formula or suggest me if i am wrong!

    Thank you

  4. #4
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Excel formula to retreive data from two cells with certain conditions

    Hi,

    Instead of using whole numbers, try using them as percentages..

    Your example will work only if used as below :
    0.83 0.22
    0.85 0.26
    0.89 0.29
    0.94 0.20
    0.98 0.21


  5. #5
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Excel formula to retreive data from two cells with certain conditions

    Quote Originally Posted by Saarang84 View Post
    Hi,

    Instead of using whole numbers, try using them as percentages..

    Your example will work only if used as below :
    0.83 0.22
    0.85 0.26
    0.89 0.29
    0.94 0.20
    0.98 0.21

    HI!

    The everything except the 1st example is working, when tested with the example above
    i.e.:
    When A1 is <=0.85 and B1 is <0.25.
    it is working with >=25 but not with <25

  6. #6
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Thumbs up Re: Excel formula to retreive data from two cells with certain conditions

    Quote Originally Posted by Saarang84 View Post
    Hi,

    Instead of using whole numbers, try using them as percentages..

    Your example will work only if used as below :
    0.83 0.22
    0.85 0.26
    0.89 0.29
    0.94 0.20
    0.98 0.21

    Hi!

    I got some errors while checking your formula:

    Please go through the attachment.

    Thank you
    Attached Files Attached Files
    Last edited by kjxavier; 07-11-2014 at 11:11 AM. Reason: CHANGE FILE WITH CORRECTION

+ 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] Retreive data from Access and paste to Excel
    By ashley21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2014, 05:11 AM
  2. Formula to retreive data into a sheet - Database vlookup or if analysis
    By gunner05 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2013, 01:03 AM
  3. Formula to retreive data into a sheet - Database vlookup or if analysis
    By gunner05 in forum Access Tables & Databases
    Replies: 1
    Last Post: 05-23-2013, 05:20 PM
  4. Replies: 5
    Last Post: 10-15-2012, 06:33 PM
  5. [SOLVED] is there anyway to retreive data if deleted in ms excel
    By Jimmy Baig in forum Excel General
    Replies: 3
    Last Post: 10-19-2005, 05:05 AM

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