+ Reply to Thread
Results 1 to 2 of 2

look for certain value, then select the celladdress the value is in and show its value

  1. #1
    Registered User
    Join Date
    07-28-2015
    Location
    Tallinn, Estonia
    MS-Off Ver
    office 97
    Posts
    6

    look for certain value, then select the celladdress the value is in and show its value

    Hello!

    Its a work schedule xsl file., where I have a sheet (lookuptable - named legend), where i have letters with the values they have.. I am using the letters in hours count etc..
    In the sheets where the hours are counted

    I need to present which letters mean what. (letter meaning)
    At first I just made it manually.. like letter A means 8 work hours with the working time 13:00- 21:00 in short in the file
    A - 8h 13:00- 21:00

    Then the times changed
    I started using pointing out certain cellvalues where needed like that:
    =(Legend!C12) & "=" &(Legend!D12) &"h " &(Legend!E12)

    But then New letters appeared, and since my formulas need my lookuptable(legend) to sort the letters AtoZ after adding a new one
    then the pointing out a certain cellvalues got messed up also.

    Now im looking for a solution what in my head should be something like that:
    when i want to add letter a
    check lookuptable column to have letter a, if yes then get letter a celladdres and then enter data from celladdress+nextcolumn+next column
    a+8h+13:00-21:00

    including a sample file for better understanding.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: look for certain value, then select the celladdress the value is in and show its value

    If I understand correctly all that is needed is to modify 'Legend' lookup table.

    In the attached I did the following:
    1. Changed the table headers to "work start" and "work end".
    2. I used text to columns to parse the times.
    3. Calculated "work hours" with this formula.
      Formula: copy to clipboard
      Please Login or Register  to view this content.

    This should make it easier to maintain the changes you note. There should be no need to return cell addresses. Your formulas in 'BLA' & 'JV' still work.

    Does this do what you want?
    Dave

+ 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. VBA-Show cell value in column (A) when i select row
    By Ezzathaz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2015, 09:20 AM
  2. Select and show a table with conditions
    By nicu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 05:21 AM
  3. How to get only select rows to show on new tab?
    By scotb50 in forum Excel General
    Replies: 3
    Last Post: 11-28-2013, 01:24 AM
  4. A VBA code to select & show one chart from many
    By Michael6 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2011, 07:14 AM
  5. Show Userform on Cell Select
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2009, 10:48 AM
  6. print select and show msg.
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2008, 02:22 AM
  7. Select Wrong Show Msg.
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2007, 04:47 AM

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