+ Reply to Thread
Results 1 to 9 of 9

Fill or empty fields

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    19

    Unhappy Fill or empty fields

    I have a spreed sheet with over 5000 products. I want to write a formula that looks at cell I-1 and if it is empty make R-1 empty as well; but if it is not empty, leave R-1 as is.
    I know this is simple but I can't seem to write the formula to work.
    Help please?

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Fill or empty fields

    Are I1 and R1 the only cells you want to do this for, or will it be for more cells?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    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: Fill or empty fields

    Him and welcome to the forum,

    Unfortunately you can't have both a formula in R1 and also a value that you manually enter. You can achieve this with a VBA macro but not without. YOu could have a third cell and use

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then use the third cell for whatever you were going to use R1 for.
    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.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Fill or empty fields

    Exactly what I was thinking Richard (guess I should have said so). I had actually wrote a code in a Worksheet Change for this, hence my question about this I1, R1 being the only cells or if there were multiple cells, so that I didn't' give OP the wrong code.

  5. #5
    Registered User
    Join Date
    12-23-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Fill or empty fields

    Yes there will be other cells to be empty. What I have is, I2 & R2 have a value that needs to remain in the cell. But I1 is empty and R1 is not. So I want to create a formula to fill down the entire workbook that if I1 has a value in it, R1 will retain its value after the fill takes place. But if I1 is empty, then R1 is to become empty after running the fill down. I hope this helps.

  6. #6
    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
    52,926

    Re: Fill or empty fields

    A formula cannot change the contents of another cell, it can only affect the cell it is in. And, as has been said already, you cannot have a number in a cell AND a formula, you can only have 1 OR the other
    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

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Fill or empty fields

    An alternative could be to use cell S2 (a helpcolumn) for the formula.

    Edit:

    as already added by Richard Buttrey in #3.
    Last edited by oeldere; 11-29-2015 at 06:07 AM. Reason: Edit added
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    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: Fill or empty fields

    Quote Originally Posted by DTEInc View Post
    Yes there will be other cells to be empty. ......
    You've not indicated whether a third helper cell would address your request. See #3. If you aren't happy to use a helper cell and use that for whatever you want then you will need a VBA macro. However unless there's some strange reason why you can't use a third helper cell the you should use that.

  9. #9
    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: Fill or empty fields

    ..thanks for the Rep. Not sure if your Q. has been satisfactorily answered but if so when you have a moment would you edit the original post and mark it as solved.

+ 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. Skipping empty fields in chart
    By pelachrum in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-20-2014, 06:05 PM
  2. Not Allow Empty Userform Fields
    By Will_P in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-16-2013, 06:29 PM
  3. Dont Allow Empty Userform Fields
    By Adam Hewitt in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-08-2011, 04:16 AM
  4. Sum Fields if Cell is Empty
    By fpmsi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2009, 04:29 PM
  5. Merging Vertical fields up if fields to either side are empty
    By SuperMykEl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2008, 11:25 AM
  6. Make it ignore empty fields
    By Trintrin in forum Excel General
    Replies: 1
    Last Post: 03-24-2006, 03:17 PM
  7. disregarding empty fields during average
    By Todd Nelson in forum Excel General
    Replies: 1
    Last Post: 08-03-2005, 04:05 PM
  8. [SOLVED] [SOLVED] Sort by empty fields
    By Mark Flynn in forum Excel General
    Replies: 5
    Last Post: 02-10-2005, 11:06 AM

Tags for this Thread

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