+ Reply to Thread
Results 1 to 7 of 7

Nested IF or FOR and IF condition - New to this function - Help needed

  1. #1
    Registered User
    Join Date
    11-06-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    4

    Nested IF or FOR and IF condition - New to this function - Help needed

    Hello Team:

    Here is the screen shot of the problem. I am looking for help for formula in Column C7

    excel.png
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by vignesha; 11-06-2018 at 08:48 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Nested IF or FOR and IF condition - New to this function - Help needed

    in general, from your description in the sheet I would advise you to use a vlookup, something like =VLOOKUP(G6,Tradesize,2,TRUE) but with a balance below your lowest value in J:K it will return #N/A so maybe add IFERROR to it? =IFERROR(VLOOKUP(G6,Tradesize,2,TRUE),"")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    11-06-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    4

    Re: Nested IF or FOR and IF condition - New to this function - Help needed

    Thank you Sambo.

    I tried applying your formula, it wold not return the exact value that I am looking. Do you mind sending your fix in an excel file, so I can check.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Nested IF or FOR and IF condition - New to this function - Help needed

    As I noted based on what you wrote and the values you had it would return #N/A.
    I was not completely clear on your requirements.
    your note says
    in column C2 I want to compare G6 and put column K values here. for eg: if the value is above 11000 and less than 13000 then it should be 1 if it is above 13,000 but less than 16000 it should be 2 etc.
    But your example in cell C2 is 10000 which is not in your lookup table. A vlookup will work for a table where your values are in ascending order and you use "TRUE" at the end of the statement but if your value is below the lowest range then I don't know and the formula doesn't know what to do with that. So what do you expect the value to return if the value is below 11000 (such as 10000)?

  5. #5
    Registered User
    Join Date
    11-06-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    4

    Re: Nested IF or FOR and IF condition - New to this function - Help needed

    Sorry, That was a typo, I should have typed C7 and not C2. I am looking for a formula in Cell C7.

    From 0 Upto 12999, it should be 1
    from 13000 to 15999 it should be 2
    from 16000 to 19999 it should be 3 and so on.

    Thank you for trying to help me out

  6. #6
    Registered User
    Join Date
    11-06-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    4

    Re: Nested IF or FOR and IF condition - New to this function - Help needed

    Hi Sambo, I changed the lookup table value - in column J5, I put 1 there instead of 11000. Then it worked like a charm. Really appreciate your time and efforts on this. Cannot thank you enough for the same.
    God bless
    Ragu

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: Nested IF or FOR and IF condition - New to this function - Help needed

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Need help in nested if condition
    By marimuthuravi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2018, 04:27 AM
  2. Nested IF function needed?
    By Sareno in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2016, 11:40 AM
  3. (SUM(IF( ARRAY Function with nested LEFT Rule - Help Needed
    By huntethic in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-16-2016, 05:05 PM
  4. [SOLVED] Help needed for a nested IF function
    By icubud in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2016, 11:59 AM
  5. [SOLVED] Nested IF function needed
    By Petsi in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-20-2014, 01:46 PM
  6. [SOLVED] Nested IF Function - The 'Condition' is based on two values within a Cell
    By Sinalk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 11:27 AM
  7. Nested IF function (urgent help needed)
    By HJalal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2013, 11:59 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