+ Reply to Thread
Results 1 to 7 of 7

Problem with ISBLANK function

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    94

    Problem with ISBLANK function

    Hi,

    I'm trying to achieve the following:

    In Cell A49 I want to have a value from D49. But if D49 is blank, I want the
    value from C49, but if C49 is blank I want the value from B49.

    =IF(ISBLANK(D49),((ISBLANK(C49),(B49),(C49),)),D49)

    is what I have come up with but it doesn't seem to be correct. Can someone
    please show me where I've gone wrong.

    Thanks!
    Dave

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(D49<>"",D49,IF(C49<>"",C49,B49))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =IF(D49<>"",D49,IF(C49<>"",C49,IF(B49<>"",B49,"")))

    if only one of those cells is filled and the others are always blank and the cell(s) are numeric.... then, =Sum(B49:D49) may suffice?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    seems like =IF(ISBLANK(D1),IF(ISBLANK(C1),B1,C1),D1) is the formula i need.

    however, i now need to do this from column M to B. is there a quicker way of doing this, or do I need to write it all out by hand?

    thanks, dave!

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

  6. #6
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    Quote Originally Posted by VBA Noob

    Hi VBA Noob,

    Could you advise which of the formulas on this page would allow me to find the last value between columns B and M i.e. furthest right (towards M).

    Thanks
    Dave

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Click on any of the links. The top formula shows by row the other by column.

    Choose the column one and adjust your range

    VBA Noob

+ 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