+ Reply to Thread
Results 1 to 5 of 5

if then within range

  1. #1
    Registered User
    Join Date
    09-27-2015
    Location
    ny
    MS-Off Ver
    2013
    Posts
    8

    if then within range

    i am trying to search within a range,

    please see attached excel for sample data

    if F3 is within a range( U3:U9) then H3=468, if F3 is within range (u10:u15) then H3= 498, if F3 is within range U16:U20) then H3= 16 and if F3 is within range (u21:u32) then H3=8

    thank you in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: if then within range

    H3 =VLookup(F3,$U$3:$V$32,2,0) and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: if then within range

    is U3 to U32 - a fixed range and set of numbers ?
    And are those codes always different

    I notice there are different codes for each range (assuming U3:U9 = U3:U10 )

    so can you just do a simple lookup of the value

    index($U$3:$U$32, match(F3,$U$3:$U$32,0))
    and so you could use that as a lookup and add the prefix L, S, F, P, LC to decide on the number

    is that correct or are you looking at the numbers only

    IF( ISERROR(index($U$3:$U$32, match(F3,$U$3:$U$32,0)) ), "no Match", IF( left( and I can look at perhaps an array to find the value ) =LOOKUP(LEFT(F4,1),{"L","S","F","P";10,20,30,40}) )
    Last edited by etaf; 03-13-2016 at 01:01 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    09-27-2015
    Location
    ny
    MS-Off Ver
    2013
    Posts
    8

    Re: if then within range

    Oeldere, Nailed it!!!!!!!!!!! thank you so much

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: if then within range

    Thanks for the rep.

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  2. Replies: 4
    Last Post: 08-04-2014, 04:48 AM
  3. I Filter range A9:AG300 using listbox(userform) hide all from range blank cells
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2014, 03:28 AM
  4. [SOLVED] reference date time range, return the value into all cell that match datetime range
    By Jarvco13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2013, 10:39 PM
  5. [SOLVED] Count number of occurances below a range, within a range, and below a range
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2013, 11:36 PM
  6. [SOLVED] defining a range subset based on a primary range for use in Median and Mode functions
    By Araise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2013, 06:39 PM
  7. send to range, popup box to input what the range should be each time/select range
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2012, 01:37 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