+ Reply to Thread
Results 1 to 10 of 10

Return a letter in another cell is occupied

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Return a letter in another cell is occupied

    I need a code that will return a letter in a cell if another cell is occupied.

    For example:

    If A1:A7 are full I need B1:B7 to contain the letter U.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Return a letter in another cell is occupied

    Hi,

    Do you mean if ALL cells in the range A1:A7 are full then ALL cells in the range B1:B7 should contain the letter "U" or for each cell in range A1:A7 that is full, put a "U" in the corresponding cell in column B?
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Return a letter in another cell is occupied

    Hi

    Try this formula:

    =IF(ISBLANK(A1:A7)=FALSE,"U","")
    Click *, if my suggestion helps you. Have a good day!!

  4. #4
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Return a letter in another cell is occupied

    The formual would work however I can't have formulas in a cell

  5. #5
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Return a letter in another cell is occupied

    Do you want a macro?

  6. #6
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Return a letter in another cell is occupied

    Yes I need to add it into an existing macro

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Return a letter in another cell is occupied

    Just put the formula in the cell and then remove the cell and leave the value using

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Return a letter in another cell is occupied

    I need to run a macro as I have 90 different files with different amounts of data

  9. #9
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Return a letter in another cell is occupied

    Check this out...

    luke.xlsm

  10. #10
    Registered User
    Join Date
    05-15-2012
    Location
    Oshawa, ON
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Return a letter in another cell is occupied

    perfect thanks a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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