+ Reply to Thread
Results 1 to 7 of 7

=INDEX dependent on value in cell

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    363

    =INDEX dependent on value in cell

    I have a workbook that gives visualisation of staff Annual Leave. i want to be able to have their name added to the first cell of their A/L where a block is coloured in depending on
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have got a formula that works:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but I was wondering if there was a more efficient way of this working rather than having this formula in (almost) every cell in the worksheet

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: =INDEX dependent on value in cell

    You have to have the formula in almost every cell in the worksheet. The name can appear in any cell depending on conditions, so every cell has to have the formula. The other option would be to use VBA to put it there, but that has no advantage over the formula method and adds complexity.

    Not sure what you have going on there in rows 11 & 12, but 3:10 look fine.

    You can simplify your conditional formatting rule used to highlight the name. It doesn't have to reproduce the logic you already have in the cell. You can use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    By the way, I'm puzzled by the title of this thread. INDEX does not seem to play a role here.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    363

    Re: =INDEX dependent on value in cell

    Hi Jazzer

    Sorry I was trying to spin too many plates this morning, and dropped most of them


    11 & 12 were lines where I added "Blank" just to confirm the formula was working correctly.

    I have mode the changes you have mentioned, thank you. i was just wondering if there was a way of forcing the names to show in full - I assume that because I have a formula in the following cell this is "overwriting" the text that would normally be visible if the cell was blank?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: =INDEX dependent on value in cell

    The formatting is different than the original. The cells are now very narrow.

    Yes, that's correct. Text in a cell will bleed into the next cell only if the next cell is empty (i.e., no value and no formula).

    If you want to try VBA I can help with that but I don't want to put any work into it until I'm 100% sure what you want. The problem with what you want to do is that even if you do this with VBA, to put the name only where it is needed and leave the other cells empty, the formatting will probably not be what you're after. The first cell will be conditionally formatting to highlight the name, but the name will bleed into the red cells.

    Darryl.jpg

  5. #5
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    363

    Re: =INDEX dependent on value in cell

    Hi Jazzer

    No, that if fine. Thank you for the help. White Bold Text on the red, and with the use of Freeze Panes has made it a lot easier than what I had originally.

    Thanks muchly for all the help.

    Darryl

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: =INDEX dependent on value in cell

    Marked SOLVED so no VBA?

    Glad to help.

  7. #7
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    363

    Re: =INDEX dependent on value in cell

    Hi Jazzer.

    No. no VBA at this moment. What you have helped with makes it a lot easier than what I had to start with, and it is only used periodically so not worth taking up both of our time, but thanks for the offer.

+ 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. [SOLVED] Dependent Index/Match Struggles
    By Darko_Giac in forum Excel General
    Replies: 7
    Last Post: 04-08-2021, 02:28 AM
  2. Replies: 4
    Last Post: 12-16-2018, 11:54 AM
  3. [SOLVED] Index match from multiple worksheets based on dependent cell
    By BWellman in forum Excel General
    Replies: 3
    Last Post: 06-28-2017, 10:42 AM
  4. [SOLVED] IF and INDEX/MATCH combo with relative/dependent cell value
    By Nina579 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2016, 10:02 AM
  5. [SOLVED] Index/Match dependent with range dependent on another column
    By golden2282 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2016, 01:12 AM
  6. Replies: 2
    Last Post: 01-14-2014, 08:31 PM
  7. IF dependent INDEX MATCH
    By jwaldmann in forum Excel General
    Replies: 2
    Last Post: 02-11-2012, 10:32 AM

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