+ Reply to Thread
Results 1 to 12 of 12

Blank cell in formula

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Blank cell in formula

    Hello All,

    I suspect this is a very simple question to some of you, but I simply don't know how to revise the formula to get the result i want.

    In the attached spreadsheet if cell B9 is left blank then range D10:K10 returns zero. How do I revise the formula in cells D10:K10 so that if B9 is emply the cells F10:K10 returns the answer 5,000?

    Thanks to anyone who can provide some assistance.
    Attached Files Attached Files
    Last edited by TGP; 07-08-2010 at 12:17 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Blank cell in formula

    Hi TGP,

    See if the revised formulas in the attached are what you're after.

    Regards,

    Robert
    Attached Files Attached Files
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    07-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Blank cell in formula

    Hi Robert,

    Partially what I'm after but in your example when I enter a date into B9 then the cells return zero.

    What I need is for the cells representing the dates between the start date and the end date to return A7 does this make sense?

    Thanks,
    TGP

  4. #4
    Registered User
    Join Date
    07-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Smile Re: Blank cell in formula

    Quote Originally Posted by Trebor76 View Post
    Hi TGP,

    See if the revised formulas in the attached are what you're after.

    Regards,

    Robert
    Hello Robert,

    I have revised your formula and it now works as i had hoped for (see attached), but I don't understand the first part of your formula?

    =IF(COLUMN()>=6,

    What is this asking for? Why is the 6 relevant? Confused in Sydney?

    Thanks you for your help!
    Attached Files Attached Files

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Blank cell in formula

    Maybe

    =IF(OR(AND(D9>=$A$9,D9<=$B$9),AND(D9>=$A$9,$B$9="")),$A$7,0)

    copied across

  6. #6
    Registered User
    Join Date
    07-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Blank cell in formula

    Thanks Teylyn. Much appreciated!!

  7. #7
    Registered User
    Join Date
    07-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Blank cell in formula

    Hi Teylyn,

    Not sure you are still there, but I have a quick question.

    In your solution if there is a blank start date the cells return A7, how can I get this to return zero if there is no start date entered?

    Cheers,
    TGP

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Blank cell in formula

    something like this, maybe

    =IF(OR(AND(D9>=$A$9,D9<=$B$9),AND($A$9<>"",D9>=$A$9,$B$9="")),$A$7,0)

  9. #9
    Registered User
    Join Date
    07-06-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Blank cell in formula

    Genius! Thank you for getting back to me.

  10. #10
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Blank cell in formula

    Hi TGP,

    Just to clarify my formula, in your original post you said that you wanted the formula to kick in from Column F which, formula wise, is Column 6.

    I'm glad that teylyn was able to provide a workable solution.

    Regards,

    Robert

  11. #11
    Registered User
    Join Date
    06-23-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    13

    Nested If condition

    Hi ,
    I want use the Nested if more 10 times , but in excel it was allow to use upto 7 times only . My condition are follows :

    Cell value < 10 "Group1"
    Cell value > 10 & Cell value <=20 ,"Group2"
    Cell value > 20 & Cell value <=30 ,"Group3"
    Cell value > 30 & Cell value <=40 ,"Group4"
    Cell value > 40 & Cell value <=50 ,"Group5"
    Cell value > 50 & Cell value <=60 ,"Group6"
    Cell value > 60 & Cell value <=70 ,"Group7"
    Cell value > 70 & Cell value <=80 ,"Group8"
    Cell value > 80 & Cell value <=90 ,"Group9"
    Cell value > 100 ,"Group11"

    But i tried this is condition in excel 2007 , but it fails . Kindly give the solution for my problems or kindly send the procedure to do in macros.

    THanks in advance

  12. #12
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Blank cell in formula

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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