+ Reply to Thread
Results 1 to 7 of 7

Checking in which range a value is located – formula wanted

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    Germany
    MS-Off Ver
    14.3.5 Mac
    Posts
    9

    Checking in which range a value is located – formula wanted

    I want to have C9 populated with a budget type from H1, I1 or J1. How do I create the formula that checks which budget type the value in F9 is?

    I am using excel very infrequently.

    Screen Shot 2014-05-18 at 12.52.26.jpg

    thx, andreas

  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,099

    Re: Checking in which range a value is located – formula wanted

    Hi, see the attached sheet. If you wish to ask further questions, please do so - but please upload a sheet and not a screen shot.
    Attached Files Attached Files
    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
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Checking in which range a value is located – formula wanted

    Try this Array Formula. Since this is an array formula so you need to confirm it with Ctrl + Shift + Enter instead of just Enter. i.e. after placing the formula in C9, hold down the Ctrl + Shift and then press Enter.

    Please Login or Register  to view this content.
    and then drag down.

    Is this what you want?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Checking in which range a value is located – formula wanted

    Here is another option:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Still, I think Glenn's solution is the easiest and best.
    Last edited by Jacc; 05-18-2014 at 09:37 AM.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Registered User
    Join Date
    08-02-2013
    Location
    Germany
    MS-Off Ver
    14.3.5 Mac
    Posts
    9

    Re: Checking in which range a value is located – formula wanted

    Hi Glen – super helpful. Didn't think about restructuring the data and using a vlookup.

    However, there seems to be an issue with the names of my budgets. How can I make vlookup look for the exact text values? I mustn't change the texts.

    As requested, here's the "amended" excel file:
    Attached Files Attached Files
    Last edited by avg_sum; 05-18-2014 at 12:01 PM.

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

    Re: Checking in which range a value is located – formula wanted

    My mistake... Or rather VLOOKUP's mistake. Unless specified otherwise, it'll look for an approximate match. The false statement requires it to find an exact match. The four IMAS variants confused it totally. Two alternatives:

    Enter this into C9 & drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Glenn Kennedy; 05-18-2014 at 12:52 PM.

  7. #7
    Registered User
    Join Date
    08-02-2013
    Location
    Germany
    MS-Off Ver
    14.3.5 Mac
    Posts
    9

    Re: Checking in which range a value is located – formula wanted

    That did it! Perfect, thanks.

+ 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. checking two range of data base on an specific cells value with VBA or formula
    By hamidrezaxy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2013, 05:10 PM
  2. Formula checking if a combination of cells exists in the range
    By chrismyers51 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 05:49 PM
  3. Simple return of text located in a range
    By hopalong in forum Excel General
    Replies: 1
    Last Post: 01-20-2012, 02:52 PM
  4. Replies: 3
    Last Post: 02-06-2011, 05:29 AM
  5. Replies: 0
    Last Post: 08-04-2010, 10:51 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