+ Reply to Thread
Results 1 to 7 of 7

Which Worksheet is a Value in?

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2007
    Posts
    21

    Which Worksheet is a Value in?

    I'm in the process of buying my first home, and am trying to plan out what furniture I need, and when to buy it.

    To this end I'm creating an Excel workbook for each room, with a tab for Months 1, 3, 6, 9, 12, 18, and 24, which obviously correspond to the time after occupation. Attached is the file for the Living Room.

    I also have a "summary" tab which lists the various things I want to buy (TV, Sofa, Coffee table, etc.), how much they cost and a spec.

    I'm using a VLOOKUP linked to the summary tab in each month to fill in all the other values having entered the item.

    I would like to have a "reverse lookup" in the "Date Scheduled" column on the Summary sheet to tell me for example, which month I'm planning to buy the TV.

    Any help would be greatly appreciated.

    dJE
    Daniel J. Ellis

    Costings-Living Room.xlsm

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Which Worksheet is a Value in?

    I had to make a small adjustment to B1 and "A2" in each sheet, to make life simpler. This is one way of doing it. A word of advice, though. You have used merged cells all over the place.

    Don't.

    They make life VERY diffcult. They're OK (just about...) for headers that will NEVER be referenced in a formula. In general, though - don't touch 'em. They're the work of the devil, you know....
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Which Worksheet is a Value in?

    If you are looking for the month to purchase an item, use the Overall worksheet instead of trying to go to the month worksheet.

    Click on the Formulas Tab, Name Manager, click New and add this definition in the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Select cell Overall!K6 then click on the Data tab, Data Validation, Allow List, and enter in the formula field.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This creates a drop-down listing of the items in column A from which you can make a choice.

    In Overall!L6 enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format the cell as mmmm yyyy by right clicking on the cell, choose Format Cells, Date, Custom and enter mmmm yyyy click OK.

    This formula takes the value returned in K6 and returns the value in column L

    Drop-down.JPG
    Last edited by newdoverman; 07-14-2015 at 11:46 AM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    04-03-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Which Worksheet is a Value in?

    Thanks, but I couldn't spot any differences between your version and my original (and no values in B1). What should I be looking for?

    I'll bear that in mind about merged cells, what would you suggest using instead?

    dJE

    Quote Originally Posted by Glenn Kennedy View Post
    I had to make a small adjustment to B1 and "A2" in each sheet, to make life simpler. This is one way of doing it. A word of advice, though. You have used merged cells all over the place.

    Don't.

    They make life VERY diffcult. They're OK (just about...) for headers that will NEVER be referenced in a formula. In general, though - don't touch 'em. They're the work of the devil, you know....

  5. #5
    Registered User
    Join Date
    04-03-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Which Worksheet is a Value in?

    Quote Originally Posted by newdoverman View Post
    If you are looking for the month to purchase an item, use the Overall worksheet instead of trying to go to the month worksheet.
    I'm trying to find out which worksheet each item is listed in.

    Quote Originally Posted by newdoverman View Post
    Click on the Formulas Tab, Name Manager, click New and add this definition in the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    What does this do? I couldn't see how it was referenced later.

    Quote Originally Posted by newdoverman View Post
    Select cell Overall!K6 then click on the Data tab, Data Validation, Allow List, and enter in the formula field.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This creates a drop-down listing of the items in column A from which you can make a choice.

    In Overall!L6 enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format the cell as mmmm yyyy by right clicking on the cell, choose Format Cells, Date, Custom and enter mmmm yyyy click OK.

    This formula takes the value returned in K6 and returns the value in column L

    Attachment 407141

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Which Worksheet is a Value in?

    Ha Ha. I attached the original. Try this...
    Attached Files Attached Files

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Which Worksheet is a Value in?

    Here is code that takes value in cell D4 and searches the workbook for that value and returns all occurrences of the value: The code is from excel-easy.com

    Please Login or Register  to view this content.

+ 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. Data linking from one worksheet to another worksheet without alteration in 1st worksheet
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2015, 01:42 AM
  2. Macro to copy data from multiple worksheet cells in to a single Master worksheet
    By thunt13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2015, 03:24 PM
  3. Excel VBA find newest worksheet based on date/time stamp in worksheet name?
    By takchin.tc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2012, 03:56 PM
  4. [SOLVED] Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2012, 04:02 AM
  5. Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2012, 02:49 AM
  6. Replies: 3
    Last Post: 10-16-2012, 09:02 AM
  7. Replies: 4
    Last Post: 02-25-2009, 03:16 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