+ Reply to Thread
Results 1 to 2 of 2

Prevent data entry and calculate at same time.

  1. #1
    Registered User
    Join Date
    02-05-2018
    Location
    England
    MS-Off Ver
    Office 2013
    Posts
    14

    Prevent data entry and calculate at same time.

    Hi,

    I have a spreadsheet which contains a cell for hours worked and a cell for the percentage of full time that represents
    ie, a1=hours worked and b1=the full time percentage that equates to.
    I can get them to work fine if I make input possible into one only and use a formula in the second however what i'm after is the ability to enter into either cell and the other cell will calculate its value.

    a good example of what I'm trying to achieve is googles converter. so if a value is entered into "stone" cell it calculates the value in the "kilo gram" but if you then type a second value into the KG accordingly it adjusts the stone cell accordingly.

    No matter what I try I always get a circular or loop error.
    Any suggestions
    Last edited by Gordsky; 03-03-2018 at 02:38 PM. Reason: question rephrasing

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Prevent data entry and calculate at same time.

    Hi Gordsky,

    Excellent question. The problem is that without using VBA, a cell can either be a value or a formula, but not both.

    One way to solve your problem is to add a 3rd cell which is the only place data is entered.
    If the value in the 3rd cell has the last character as %, your % cell will take that value, and you can calculate hours for the other cell.
    If the value in the 3rd cell has no % as the last character, your hours cell will take that value, and you can calculate % for the other cell.

    Unfortunately, your simple formula will become a little more complicated.

    Many problems like yours can be solved using a 'helper' cell or 'helper' column.

    Lewis

+ 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. How to prevent similar data entry?
    By ariansman in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-17-2016, 07:49 AM
  2. Replies: 0
    Last Post: 02-04-2014, 12:36 AM
  3. Prevent Manual Data Entry
    By BRAY1980 in forum Excel General
    Replies: 1
    Last Post: 10-26-2011, 05:42 AM
  4. VBA code to prevent data entry
    By singhabhijitkumar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-04-2010, 03:42 AM
  5. [SOLVED] prevent data entry into cell?
    By keif in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2006, 03:40 PM
  6. [SOLVED] Validate in WS to prevent dual data entry
    By Jonah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2006, 01:25 AM
  7. [SOLVED] How Can I Prevent Data Entry In Same Category on the Same Date?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2005, 03:05 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