+ Reply to Thread
Results 1 to 5 of 5

Keeping cell range locked during Vlookup? Indirect function?

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    tacoma, wa
    MS-Off Ver
    excel 2010
    Posts
    53

    Keeping cell range locked during Vlookup? Indirect function?

    I have the following formula in a workbook. it's used to determine if any lines/charges were added/removed from the previously ran report. my problem is that the macro i run deletes 6-8 lines in the report that the Vlookup uses and therefore changes the end range for the array i need. In reality the report only goes to cell AG but I made it $B:$ZZ so it could delete enough lines to not make me worry about it for awhile.

    i know there is an easier way. i thought it was with the indirect function but i can't make it work. probably easy but looking for help. Thank you.


    =IF(ROUND(A2,1)=(ROUND(VLOOKUP("TOT Direct Labor Shipwork",'WARR Actuals'!$B:$YH,12,FALSE),1)),"Yes","No")

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Keeping cell range locked during Vlookup? Indirect function?

    Back up, like, 30 steps.

    Are you deleting rows or columns when you delete "lines"? Why are you doing that?

    When you are "running a report", what does that mean? It almost sounds like "running a report" means "running a macro embedded in the spreadsheet".
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    tacoma, wa
    MS-Off Ver
    excel 2010
    Posts
    53

    Re: Keeping cell range locked during Vlookup? Indirect function?

    Ok, sorry. i'll clarify a bit. as much as i can at least. OPSEC here is pretty strict.

    This is a tool i use to verify if a snapshot of our workplace in terms of what is being charged where is accurate and up to date. this "report card" we call it holds 97 "lines" or vessels and there is a vlookup on each one which pulls from the report i copy/paste into this workbook.

    The "lines" are names of vessels my employer repairs. they are in rows. vessels come in and out fairly regularly so this is designed to check which area is missing a vlookup to add into the mix. There is only 1 column i really need that shows the actual "charges" if you will and it shifts each month as the calendar does. The report is ran independent of this workbook from a database. I copy/paste it into the workbook and run the macro which shifts the 4th column to the 1st (so i can use the vlookup - yes i know Index/match, this is easier), and deletes the extra blank columns.

    Technically i don't have to delete the blank columns and would just have to change the col num on the vlookup to 17 or 18 instead of 12 but i know this is possible to do what i need.

    Hope this helps. sadly i can't post a workbook without sanitizing so much it wouldn't be useful anyway. i'll look into trying though. Thanks.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Keeping cell range locked during Vlookup? Indirect function?

    Quote Originally Posted by iracknback View Post
    - yes i know Index/match, this is easier
    ...
    ...
    Technically i don't have to delete the blank columns and would just have to change the col num on the vlookup to 17 or 18 instead of 12
    If you use Index/Match you wouldn't have to do that. It would adjust automatically as columns are deleted/inserted/moved etc..

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,642

    Re: Keeping cell range locked during Vlookup? Indirect function?

    What do the column headers look like? What determines which column to look at?
    Ben Van Johnson

+ 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. Replies: 15
    Last Post: 09-10-2013, 05:31 AM
  2. keeping the borders locked
    By JediMaster in forum Excel General
    Replies: 2
    Last Post: 07-25-2010, 09:04 AM
  3. keeping the colour locked on a ranking table
    By JediMaster in forum Excel General
    Replies: 1
    Last Post: 07-24-2010, 04:42 PM
  4. Indirect or Vlookup Function
    By Biff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  5. Indirect or Vlookup Function
    By Justin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2005, 06:05 PM

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