+ Reply to Thread
Results 1 to 6 of 6

Displaying text from another worksheet

  1. #1
    Registered User
    Join Date
    05-05-2015
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    3

    Displaying text from another worksheet

    Hi all,

    My first post here.

    I'm doctoring an existing spread sheet (downloaded from the internet) for booking IT equipment at work. There are two tabs, booking and availability. In the bookings tab the user will enter the dates and equipment they wish to use. Does anyone know how to pull the text from the E column of the bookings sheet so that it is displayed in white text on the corresponding booking in the availability sheet?

    There is already a formula in the cells of the availability sheet that blocks out the booking in red. I can't work out what or where to add in order to display the text.

    Thanks in advance.

    Ashley
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Displaying text from another worksheet

    In H7 copied across and down

    =IFERROR(INDEX(Booking!$E$5:$E$997, IF(SUMPRODUCT((Booking!$F$5:$F$997<=H$6)*(Booking!$G$5:$G$997>=H$6)* (Booking!$H$5:$H$997=$C7)*(Booking!$I$5:$I$997=$F7))=1,SUMPRODUCT(( Booking!$F$5:$F$997<=H$6)*(Booking!$G$5:$G$997>=H$6)*(Booking!$H$5:$H$997=$C7)* (Booking!$I$5:$I$997=$F7)*(ROW($A$5:$A$997)-ROW($A$5)+1)),"")),"")

    Then using conditional formatting, I changed the rules
    For blue
    Cell value = ""
    For Red, use formula
    =LEN(H7)>0 format with white text
    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,204

    Re: Displaying text from another worksheet

    The formula you have is designed to produce a one (1), a zero (0) or a negative number. That's then used in Conditional Formatting to set the colour of the cell.

    Not sure how you would include the name in the cell ... but if you can you'll need to adapt the CF formulae.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,204

    Re: Displaying text from another worksheet

    @ChemistB: ah, so that's how you can do it

  5. #5
    Registered User
    Join Date
    05-05-2015
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    3

    Re: Displaying text from another worksheet

    Thank you very much! That seems to have done the trick. I'd never have worked that out. :-)

  6. #6
    Registered User
    Join Date
    05-05-2015
    Location
    Bristol
    MS-Off Ver
    2010
    Posts
    3

    Re: Displaying text from another worksheet

    Further to the help I received on this spread sheet.

    I wondered if anyone can get the conditional formatting to work so that when a double booking is made for apiece of IT equipment the cells show yellow. There is a rule for this in the formatting but it doesn't seem to work. If a double booking is made nothing happens at all.

    Many thanks.
    Attached Files Attached Files

+ 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: 0
    Last Post: 11-26-2013, 05:42 PM
  2. [SOLVED] Nested IF with the output displaying text along with text from another cell
    By madhatr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2013, 09:30 AM
  3. Macro for displaying data in a row of worksheet in another worksheet
    By NRMDU in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2013, 01:28 AM
  4. Replies: 0
    Last Post: 12-26-2012, 11:42 AM
  5. Displaying images from worksheet A to worksheet B with a click of a button
    By emilyph in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 07:49 AM
  6. [SOLVED] Displaying Specific Text in Cell Based on Text in Another
    By wowcrofty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2012, 12:11 PM
  7. Displaying worksheet tab name on an Excel worksheet?
    By SRL55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2011, 04:57 PM
  8. Replies: 3
    Last Post: 01-30-2009, 07:44 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