+ Reply to Thread
Results 1 to 6 of 6

Formula which works in one cell when drag it will not work for other cell

  1. #1
    Registered User
    Join Date
    05-05-2021
    Location
    Singapore
    MS-Off Ver
    O365
    Posts
    4

    Formula which works in one cell when drag it will not work for other cell

    Hi all,

    Im really confused over a formula works on one cell when drag it will not work for other cell.

    formula: =IF(ISBLANK(A2),(IF(ISBLANK(B2),(IF(ISBLANK(C2),"Null",C2)),B2)),A2)

    Thank you,

    Regards,
    Vas
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula which works in one cell when drag it will not work for other cell

    Hi and welcome to the forum

    What numbers do you expect in column D, i.e. what rules are you applying?

    The first thing to note is that cells like A55 & A58 are NOT blank. They contain a space character. If you make them truly blank by deleting the space you'll see a result in column C

    If it's the latest of any date in columns A, B or C then a simpler formula would be

    =MAXIFS(A55:C55,A55:C55,">0")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-05-2021
    Location
    Singapore
    MS-Off Ver
    O365
    Posts
    4
    Quote Originally Posted by Richard Buttrey View Post
    Hi and welcome to the forum

    What numbers do you expect in column D, i.e. what rules are you applying?

    The first thing to note is that cells like A55 & A58 are NOT blank. They contain a space character. If you make them truly blank by deleting the space you'll see a result in column C

    If it's the latest of any date in columns A, B or C then a simpler formula would be

    =MAXIFS(A55:C55,A55:C55,">0")
    Hi Richard,
    Thank you for reply,
    My requirement, we need check Column A has value,the same value expect in D, if column A empty look in column B, if value found in B, that value expect in D, If column B empty check for Column C has value, that value expect in D. If column A B C has value Then D will have value of A. Thats why i used isblank

    Regards
    Vas

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula which works in one cell when drag it will not work for other cell

    It's rarely advisable in situtations like this to use a space character as a 'blank' since by definition the cell is NOT blank.

    Remove all space characters in column A and use

    =IF(A55>0,A55,IF(B55>0,B55,C55))

  5. #5
    Registered User
    Join Date
    05-05-2021
    Location
    Singapore
    MS-Off Ver
    O365
    Posts
    4

    Re: Formula which works in one cell when drag it will not work for other cell

    Hi Richard,
    Thank you for reply,
    Removed all space both Column A & B and used =IF(A55>0,A55,IF(B55>0,B55,C55)) still no luck.

    Thank you
    Regard,
    Vas
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-05-2021
    Location
    Singapore
    MS-Off Ver
    O365
    Posts
    4

    Re: Formula which works in one cell when drag it will not work for other cell

    Hi Richard,
    Thank you for reply,

    Its worked there are other hidden special character replaced by space now its working for both formula. Thank you for your valuable suggestions.

    Regards,
    Vas

+ 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] PageBreak thru VBA, if cell = 1 - Works, BUT - if row hidden dosent work.
    By KSveigaard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2020, 03:46 AM
  2. Replies: 1
    Last Post: 11-07-2018, 05:48 PM
  3. Replies: 8
    Last Post: 11-29-2017, 12:36 PM
  4. drag formula to new cell keeping cell but changing worksheet number
    By TREBOR74 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2017, 11:10 PM
  5. [SOLVED] long IF formula that works on first cell but don't work on other cells
    By Linsie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-29-2015, 03:32 PM
  6. VLOOKUP works- but drag formula and get #REF!
    By she_dont_sleep in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-30-2015, 12:25 PM
  7. [SOLVED] formula works in cell but doesn't work in vba
    By maleeny31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 12:36 AM

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