+ Reply to Thread
Results 1 to 7 of 7

Auto Assign Unique Values to Blank Cells

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    59

    Auto Assign Unique Values to Blank Cells

    I am having trouble assigning a unique value to all the blank cells in a column with a Function. If the value is Null, i would like the value of the cell to then be something like "BlankCell1" and so forth. (blankcell2, blankcell3, etc).

    I cant figure out what to put in my true statement to automate that. Here's what I have so far:

    =IF('ASP DATA FILE'!Q2="","blank",'ASP DATA FILE'!Q2)

    Any help would be appreciated.

    Thank You

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Auto Assign Unique Values to Blank Cells

    If I understood u properly u need get unique values. Take a look at this book. Maybe it will help...
    Last edited by contaminated; 06-29-2009 at 05:02 PM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    03-13-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Auto Assign Unique Values to Blank Cells

    That function is super long.lol Im having trouble following that. Is there something a little bit simpler?

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Auto Assign Unique Values to Blank Cells

    Was it what you had been looking for?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Auto Assign Unique Values to Blank Cells

    are you saying =IF('ASP DATA FILE'!Q2="","blank",'ASP DATA FILE'!Q2) this formul is to go in 'ASP DATA FILE'!Q2 or another cell?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    03-13-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Auto Assign Unique Values to Blank Cells

    It is to go in another cell. It reads from a different spreadsheet, but I want the column with the formula in it to be updated to a some unique text, if the vlookup value returns blank.

    Basically i just wanna autoassign some text+a counter to make it unique.

    like Blank1, blank2, blank3, etc.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Auto Assign Unique Values to Blank Cells

    use row()
    =IF('ASP DATA FILE'!Q2="","blank "&row(),'ASP DATA FILE'!Q2)
    although it wont be blank 1,blank 2,... it will be unique for that column
    or say formula in A1 'IF('ASP DATA FILE'!B1="","blank 1",'ASP DATA FILE'!B1)
    formula in A2 dragged down 'IF('ASP DATA FILE'!B2="","blank "&SUMPRODUCT(--(LEFT($A$1:A1,5)="blank"))+1,'ASP DATA FILE'!B2)
    will give each blank cell a sequential number
    Attached Files Attached Files
    Last edited by martindwilson; 06-20-2009 at 05:26 PM.

+ 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