+ Reply to Thread
Results 1 to 7 of 7

Excel Missing text formula

Hybrid View

  1. #1
    Registered User
    Join Date
    03-30-2010
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Excel Missing text formula

    Hi all, wondering if anyone can help me. I need to create a spreadsheet that people import a password log into. I've created a macro to do this but then need to create a formula to say that if text is in column A (this will be the username) but is missing out of column B (the password) then it needs to put a colour in Column B so it's easy to spot the password is missing.

    Any help would be really appreciated...

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel Missing text formula

    Hi,

    It would be easiest to see the code that you are using.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    03-30-2010
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel Missing text formula

    Quote Originally Posted by Domski View Post
    Hi,

    It would be easiest to see the code that you are using.

    Dom
    Dom, I'm not using any code at all as I'm totally stuck. It took me a day to work out the Macro. I've tried conditional formatting but it highlights all blank cells in the worksheet which I don't want. All the formulas I've googled don't match up with what I'm trying to do. Excel is like the blackarts to me tbh.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel Missing text formula

    Quote Originally Posted by slypie View Post
    I've created a macro to do this
    I assumed you had some code already.

    If you don't have anything can you explain step by step how you expect the sheet to be completed, at what point you want the warning to appear etc

    Dom

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel Missing text formula

    Thinking about it you should be able to do it using conditional formatting...

    Select Column B and the in conditional formatting change the drop down to Formula Is and use the formula =AND(A1<>"",B1="") and then set your format.

    Dom

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Excel Missing text formula

    Change the colorindex value per your requirements (set to yellow)

    Option Explicit
    
    Sub Color_cells_Missing_Text()
    
        Dim lrow As Long
    
        lrow = Cells(Rows.Count, 1).End(xlUp).Row
    
        Range("B1:B" & lrow).FormatConditions.Add Type:=xlExpression, Formula1:="=AND(LEN($A1)>0,ISBLANK($B1))"
        Range("B1:B" & lrow).FormatConditions(1).Interior.ColorIndex = 6
    
    End Sub
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  7. #7
    Registered User
    Join Date
    03-30-2010
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel Missing text formula

    Cheers for the help guys, have some rep Excel isn't my strongpoint to say the least.

+ 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