+ Reply to Thread
Results 1 to 2 of 2

VB Scrip Help - IF CELL EQUALS VALUE THAN RETURN VALUE FROM COLUMN WITH SAME TITLE

  1. #1
    Registered User
    Join Date
    03-11-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post VB Scrip Help - IF CELL EQUALS VALUE THAN RETURN VALUE FROM COLUMN WITH SAME TITLE

    TITLE: VB Scrip Help - IF CELL EQUALS VALUE THAN RETURN VALUE FROM COLUMN WITH SAME TITLE

    I am looking for help to write a formula or script for the attached work document

    The Goal is to reduce the amount of time I have to expend looking for bracket price for an item, based on the type of business:

    Currently I have these business types:

    GOV_EDU_PUBLIC_BID
    BSC_COMMERCIAL
    HEALTHCARE
    LODGING_HOTEL_RESORT
    ENTERTAIMENT_TRAVEL
    FOOD_SERVICE
    RETAIL_CASH_CARRY
    EXPORT
    NON_PROFIT
    PORT_A_TOILET
    ASCTD_DISTR_via_RD
    RD_SE_Price

    each type has a different price for the same item:

    so I am trying to update cells Q24:Q47

    this is the logic for what I need to achieve:

    IF P24 = Empty "DO NOTHING"
    IF P24 = same value as O24 ,
    THAN GO to CELL N24
    IF N24 = Empty "DO NOTHING"
    IF N24 "VALUE" is equals to "EXPORT" (Example)
    LOOKUP "N24 VALUE" in cells "R23:AC23" (Column Title)
    THAN RETURN PRICE FOR ITEM NUMBER ON P24
    FROM COLUMN WITH SAME TITLE "EXPORT"
    Example: Y24 = should bring price of $40 to cell Q24

    DO THE SAME FOR ALL ROWS Q24:Q47


    FOR YOUR INFORMATION :
    THERE ARE TWO WORKSHEETS IN THIS WORK DOCUMENT.
    ONE HAS CALCULATION SHEET "Fill_IF_SEGMENT_ID" other are the Prices to return "SEGMENT_ID"
    Attached Files Attached Files

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: VB Scrip Help - IF CELL EQUALS VALUE THAN RETURN VALUE FROM COLUMN WITH SAME TITLE

    Try this formula in cell Q24, and fill down

    =IF(P24="","",IF(O24<>O24,"",IF(N24="","",INDEX(R24:AC24,MATCH(N24,R$23:AC$23,0)))))
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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