+ Reply to Thread
Results 1 to 7 of 7

Help with IF, Nested IF and Vlookup! I dont know where to start

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    Boston
    MS-Off Ver
    2007
    Posts
    3

    Help with IF, Nested IF and Vlookup! I dont know where to start

    i have a certain reimbursement rate for certain zip codes. There are 2 levels, rural and super rural. Each has its own rate of reimbursement. For instance, Rural is 284.75, while super rural is 349.10-for one particular service (A0426)


    Part of the problem is that there are different services. (A0426, A0427, A0428, A0429, A0433 and A0434). Each pays a different rate.
    There is also mileage which is paid per mile (A0425).


    We want to type in a zip code, service and mileage and have a formula that figures out how much to bill. Where do i start??? thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,204

    Re: Help with IF, Nested IF and Vlookup! I dont know where to start

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  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
    52,936

    Re: Help with IF, Nested IF and Vlookup! I dont know where to start

    Hi, welcome to the forum

    Without seeing what you are working with, this is a guess, but perhaps make up a table with services across the top, and level going down, and have the values in the body of the table?
    You would then use INDEX/MATCH/MATCH to find what you want

    Or, if there is a relationship between the 2 levels (super = rural +10), then just have a 2-column table and use vlookup
    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

  4. #4
    Registered User
    Join Date
    02-02-2017
    Location
    Boston
    MS-Off Ver
    2007
    Posts
    3

    Re: Help with IF, Nested IF and Vlookup! I dont know where to start

    Ok, i have most of it done, with the help of a friend. I have one more problem though.
    I have cell M7 set up to return a value (Rural, Urban or Super Rural) based on zip code.
    Each indiciator (R, U, SR) has a different cost. I need to use IF (i think) to assign each indicator the appropriate value. For instnace, Rural = $1 , Urban = $2, Super Rural = $3.
    Any advice? i cant seem to get it working.
    Thanks

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,204

    Re: Help with IF, Nested IF and Vlookup! I dont know where to start

    Something like ..???

    =IF(M7="R",1,If(M7="U",2,3))

  6. #6
    Registered User
    Join Date
    02-02-2017
    Location
    Boston
    MS-Off Ver
    2007
    Posts
    3

    Re: Help with IF, Nested IF and Vlookup! I dont know where to start

    ah, so the false value would be 3. that makes sense. I was trying to put 3 If statements in, but i only need 2 and 3rd would be the false value.
    thanks so much!

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,204

    Re: Help with IF, Nested IF and Vlookup! I dont know where to start

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. [SOLVED] Macro: Hide Row If Two Cells Dont Start The Same
    By excel2425 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2016, 03:31 PM
  2. [SOLVED] Dont Know if I Should Use VLOOKUP or INDEX_MATCH
    By frontdesk200 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-26-2015, 08:52 PM
  3. Dont even know where to start, maybe an if??
    By burnsie in forum Excel General
    Replies: 8
    Last Post: 02-20-2015, 08:15 AM
  4. [SOLVED] for loop and vlookup dont work
    By uwe.streiber in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2014, 03:31 AM
  5. Why dont we start discussion on renewable Energy sources?
    By synodbio in forum The Water Cooler
    Replies: 22
    Last Post: 12-18-2013, 05:45 AM
  6. Replies: 1
    Last Post: 12-14-2009, 05:20 PM
  7. Replies: 6
    Last Post: 10-31-2008, 11:52 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