Forum Discussion

Otto_Rayne's avatar
Otto_Rayne
Copper Contributor
Apr 19, 2020

Searched for videos, tutorials, etc as I might, I can't find the answer.

I have a Customer Master list where they are labelled with a region in column P, subregion column Q.  Pricing is based on the column P, pulling the prices from a separate sheet using IF(), unless there is a value in the subregion column Q.  If Q has a value, I have to manually enter it in because I can not figure out an IF or MATCH or INDEX formula that will allow me to, based on the value, search the next sheet for data in the column next to the matching value.  Cell Q10 for example, is subregion 1aa.  I would like it to pull the information from Sheet 2, B8 (1aa) and enter the value from C8 into Sheet 1, AK10 ($price). Q80 is 2dd, so AK80 will read ($price) from Sheet 2.  Etc.

I tried a bunch of MATCH & INDEX formats.  I have six IF variables so far for the regular regions but in total there are 50 price variables with the subregions.  PLEASE HELP!

5 Replies

  • Otto_Rayne's avatar
    Otto_Rayne
    Copper Contributor

    Otto_Rayne

    Me again.  The first time I tried it said SPILL.  I got REF and N/A.  Then at one point I was getting the row number. 

     

    • Otto_Rayne's avatar
      Otto_Rayne
      Copper Contributor

      Otto_Rayne 

      I used VLOOKUP to infill the column.  It worked.  I can merge P & Q now but column AI used column P so I'll have to jig something up for it.  VLOOKUP doesn't look left so.....

       

      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        Otto_Rayne Since you had  a #SPILL! error you are on a modern version of Excel and you probably have access to the new XLOOKUP function. That function might help you solve your problem. But, INDEX and MATCH should also be able to do the trick. If you still can't get it to work, please upload an example of your workbook (the real thing, stripped from any confidential information). Then it will be much easier to come-up with a solution.