Consulting

Results 1 to 8 of 8

Thread: Help with ISBLANK

  1. #1
    VBAX Regular
    Joined
    Sep 2004
    Location
    Sydney, Australia
    Posts
    34

    Help with ISBLANK

    =IF(ISNUMBER(INDEX(data!D:D,MATCH(A6&B6,data!A:A,0))),INDEX(data!D:D,MATCH(A6&B6,data!A:A,0)),0)
    Hi

    Can someone pls amend the above formula so that it accounts for a condition when i have a blank cell and it must return this as blank too...and NOT 0.

    Thanks in advance
    Suju


    Land Down-Under... Over the Hill and Farrrr Away.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by SUJU
    =IF(ISNUMBER(INDEX(data!D:D,MATCH(A6&B6,data!A:A,0))),INDEX(data!D:D,MATCH(A6&B6,data!A:A,0)),0)
    Hi

    Can someone pls amend the above formula so that it accounts for a condition when i have a blank cell and it must return this as blank too...and NOT 0.

    Thanks in advance
     =IF(ISNA(MATCH(A6&B6,data!A:A,0)),"",
    IF(ISNUMBER(INDEX(data!D:D,MATCH(A6&B6,data!A:A,0))),
    INDEX(data!D:D,MATCH(A6&B6,data!A:A,0)),0))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    xld, why the extra call???? You lost me there ..

    Why not just ...

    =IF(ISNUMBER(INDEX(data!D:D,MATCH(A6&B6,data!A:A,0))),INDEX(data!D:D,MATCH(A6&B6,data!A:A,0)),"")

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by firefytr
    xld, why the extra call???? You lost me there ..

    Why not just ...

    =IF(ISNUMBER(INDEX(data!D:D,MATCH(A6&B6,data!A:A,0))),INDEX(data!D:D,MATCH(A6&B6,data!A:A,0)),"")
    Fogged brain I guess!
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    LOL! Well .. uh .. try harder next time!! ROFL!!

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by firefytr
    LOL! Well .. uh .. try harder next time!! ROFL!!
    Noted (where is the hangs head in shame smiley>)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Sep 2004
    Location
    Sydney, Australia
    Posts
    34
    Thnx Fireftr and XLD. I have tried that option before. My problem is as follows:
    IF the value in data! D ISNUMBER, then return that number (including 0's).
    IF the value in ISERROR, then return 0
    IF ISTEXT then return blank
    IF ISBLANK, then return BLANK
    IF is #N/A N.A return a 0
    I cant figure out how to write the code for these different happenings.

    Your input is appreciated.
    Suju


    Land Down-Under... Over the Hill and Farrrr Away.

  8. #8
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    I would suggest putting this in a seperate column/cell ..

    =INDEX(data!D:D,MATCH(A6&B6,data!A:A,0))
    Then you could easily reference it as such (assuming the cell it goes into is cell E6 and down)...

    =IF(E6="","",IF(OR(ISTEXT(E6),ISBLANK(E6)),0,IF(ISERROR(E6),0,IF(ISNUMBER(E6),E6,""))))
    Does this work for you?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •