+ Reply to Thread
Results 1 to 5 of 5

Cell Auto Populates

  1. #1
    Registered User
    Join Date
    09-08-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    12

    Cell Auto Populates

    Hi,

    I am working on a report whereas, I am trying to get the 10% weight of certain data. However, when I tried to use the formula =IF(A1<=75,10,10-0.4*(100/A1)), it auto populates the cell to the 10% even if the base data is blank.

    Please see screenshot.

    How can I correct this?

    Thank you.

    Best,

    Mharvz
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Cell Auto Populates

    It evaluates blank cells as zero, which is less than 75. You can conditionally format the cells to be white font if the value is zero, or nest an extra If function to test for blanks =If(ISBLANK(A1),"", IF(A1<=75,10,10-0.4*(100/A1)))

    I'd use conditional formatting as this causes less problems later. Passing a zero length string back ("") may cause issues with other formulas when the rest of the cells are numbers.
    Last edited by Neil_; 09-09-2016 at 01:29 AM.
    Frob first, tweak later

  3. #3
    Registered User
    Join Date
    09-08-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    12

    Re: Cell Auto Populates

    Thank you.

  4. #4
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Cell Auto Populates

    To clarify:-

    =If(ISBLANK(A1),0, IF(A1<=75,10,10-0.4*(100/A1)))

    Then conditionally format the cells to be white if zero.

  5. #5
    Registered User
    Join Date
    09-08-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    12

    Re: Cell Auto Populates

    Thank you very much Neil. It works.

    Best,

    Mharvz

+ 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. Drop down list that auto populates appropriate cell
    By JKropetz in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-15-2015, 02:17 PM
  2. Create a form that auto populates another worksheet
    By financeintern01 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-22-2015, 05:56 PM
  3. Question about making a dropdown box that auto populates
    By Mattyb08 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2015, 08:21 PM
  4. Auto populates data on another sheet from master worksheet
    By hunglytummy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2014, 08:00 AM
  5. Replies: 3
    Last Post: 09-17-2013, 10:45 PM
  6. [SOLVED] Calendar that auto-populates from a project management tab
    By legaai in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2013, 01:08 PM
  7. Replies: 2
    Last Post: 06-26-2012, 02:20 PM

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