Share via

PREVSHEET & Adding Columns

Anonymous
2017-05-29T04:01:23+00:00

Hello,

Can anyone help with the problem below....

I am trying to pull information from a previous sheet to new sheet. I used the VBA macro formula for "prevsheet".

 In the new sheet (next tab) i used the formula 

=Prevsheet(Indirect("W9")) to pull a number from Column W, Row 9. in the previous sheet The only problem is if i add a column in the previous sheet my formula will not change to "V9" it stays at "W9" which pulls in the incorrect number. I need my formula to change to the correct column if i ever decided to go back and add/remove columns. This is for Excel 2010. 

***Post moved by the moderator to the appropriate forum category.***

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

13 answers

Sort by: Most helpful
  1. Anonymous
    2017-06-06T13:04:42+00:00

    Hello,

    Unfortunately that formula does not work when I add a column to Jan tab. It will still pull in AB instead of "Closing NAV" which becomes AC.

    Thank you for your help. I appreciate it. :)

    Was this answer helpful?

    0 comments No comments
  2. Ashish Mathur 102K Reputation points Volunteer Moderator
    2017-06-06T00:24:09+00:00

    Hi,

    Assuming that the headings are in row 10, try this

    =INDIRECT("'"&$N$1&"'!"&ADDRESS(11,MATCH("Closing NAV",$A$10:$AZ$10,0)))

    So this formula will search for the text Closing NAV in row 10 (in A10:AZ10) and return data from row 11 of that column.

    Hope this helps.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-06-05T19:37:15+00:00

    Hello,

    Sorry but I am not sure how to link the excel file. Could you give me an example of what the formula would be if using a column header? For example Sheet 1 is Jan and Sheet 2 is Feb.

                                    Jan excel tab                                                             Feb excel tab

                                    Column AB                                                                 Column F    

                              Closing NAV  (header)                                            Opening NAV (header)

      Row 11                    $200                                                                 Needs to pull $200

      Row 12                   $500                                                                  Needs to pull $500

       Row 13                 $4000                                                                Needs to pull $4000

    Formula I am using works where N1 is the "previous sheet" formula you gave in the last excel sent above.

    =INDIRECT("'"&$N$1&"'!"&CELL("address",AB11)). But now If I a column to Jan tab, then the formula will continue to take AB where it should be taking AC.

    Was this answer helpful?

    0 comments No comments
  4. Ashish Mathur 102K Reputation points Volunteer Moderator
    2017-06-01T23:04:59+00:00

    Hi,

    Please share the link from where I can download your workbook.  Also indicate the cell where you need my help.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2017-06-01T13:17:42+00:00

    Yes column AB has a heading "Closing NAV" with numbers underneath.  What would be the new formula I need to use?

    Was this answer helpful?

    0 comments No comments