+ Reply to Thread
Results 1 to 11 of 11

Help needed, not(isblank)

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    Zagreb
    MS-Off Ver
    2010
    Posts
    3

    Help needed, not(isblank)

    Hello,

    I need help. for example, in cell D1 I want excell to automatically enter some text based on which cell A1, B1 or C1 I filled.

    More details:if a put something (no matter what) in:
    - cell A1, value in the cell D1 needs to be 'car'
    - cell B1, value of the D1 would be 'house'
    - cell C1, value od the D1 would be 'road'.

    I asume the correct function should be not(isblank) but I don't know how to use it

    thanks in advance.

    --
    palcic-albert

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Help needed, not(isblank)

    if a1<>"" ,true, false
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Help needed, not(isblank)

    tRY
    =IF(COUNTA(A1),"CAR",IF(COUNTA(B1),"HOUSE",IF(COUNTA(C1),"ROAD")))
    Click just below left if it helps, Boo?ath?

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Help needed, not(isblank)

    Try this......

    In D1

    =IF(A1<>"","Car",IF(B1<>"","House",IF(C1<>"","Road","")))
    OR

    =IFERROR(INDEX({"Car","House","Road"},MATCH(TRUE,INDEX(A1:C1<>"",0),0)),"")
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help needed, not(isblank)

    Will there only be one cell with data in A1:C1 ?
    What type of data would be in the cell, Text or Number. Or could be either?

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Help needed, not(isblank)

    Try entering this in D1, as an array formula (Ctrl-Shift-Enter)
    Formula: copy to clipboard
    =CHOOSE(MATCH(FALSE,ISBLANK(A1:C1),0),"car","house","road")
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Help needed, not(isblank)

    Or this

    =IFERROR(INDEX({"Car","House","Road"},SMALL(IF(A1:C1<>"",COLUMN(A1:C1)),1)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Help needed, not(isblank)

    Hi, welcome to the forum

    Assuming you are testing for either cell is blank or cell has contents, and that only 1 of the 3 will have contents, here is an alternative...

    =IF(A1="","CAR",IF(B1="","HOUSE",IF(C1"","ROAD")))

    If 1 of the 3 will always have contents, you can shorten that to...
    =IF(A1="","CAR",IF(B1="","HOUSE","ROAD"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    08-13-2014
    Location
    Zagreb
    MS-Off Ver
    2010
    Posts
    3

    Re: Help needed, not(isblank)

    Hi,

    thanks to all for help, but (I don't know what the problem is) every formula I copy/paste return an error (with just enter or ctrl-shift-enter). for example, on the last one from FDibbins, excell select this:
    ,"CAR",IF

    Or in the formula:
    =IFERROR(INDEX({"Car","House","Road"},SMALL(IF(A1:C1<>"",COLUMN(A1:C1)),1)),"")

    bold are:
    "Car","House","Road".

    maybe some option setting is wrong?

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Help needed, not(isblank)

    May be you should use ; (semicolon) instead of , (comma) in the formulas. See if this helps.

  11. #11
    Registered User
    Join Date
    08-13-2014
    Location
    Zagreb
    MS-Off Ver
    2010
    Posts
    3

    Re: Help needed, not(isblank)

    that helps, _I replace all , with ;

    thanks everyone!

    --
    p-a

+ 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] IF formula not working =IF(NOT(ISBLANK(M3)),"",IF(ISBLANK(L3),"",TODAY()-L3))
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2014, 02:37 PM
  2. And IF isblank .. assitance with forumla needed
    By kkempson in forum Excel General
    Replies: 1
    Last Post: 04-06-2012, 04:02 PM
  3. Conditional Format Help Needed - based on date and isblank
    By davekippen in forum Excel General
    Replies: 0
    Last Post: 07-14-2011, 10:52 AM
  4. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  5. Isblank
    By dada_man in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-27-2007, 08:05 PM

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