+ Reply to Thread
Results 1 to 3 of 3

Manipulating cell data when entered

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Manipulating cell data when entered

    Hope someone is going to be able to assist - and hope I am describing this correctly. It sounds like a simple problem but it's proving to be hugely frustrating.

    I'm putting together a workbook to keep track of income generated from Contractors (I work in recruitment). I have an existing system that displays margin, hours worked and income (margin * hours) but what I am looking for is a neater solution that would still have the margin column, but when hours are entered into a cell it is factored by the margin and displays income in the same cell.

    So to be sure I am describing correctly, I am after a formula that will enable me to

    1. Enter a value into a cell (for the hours worked - lets call this B1)
    2. Multiplies this value by another cell (a fixed amount, the margin - lets call this A1)
    3. Displays this result (B1 * A1) in cell B1, the same cell as the hours were entered in.

    thanks

  2. #2
    Registered User
    Join Date
    12-03-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Manipulating cell data when entered

    Hi Timulo,

    I don't see anyway to do that. When you attempt to mupliply the input cell by a factor and then put the result in the same cell, you are creating a circular reference, and it will not work.

    I think you are best to load the data into one sheet, and then set up a report on the second sheet. There, you can do the calcs, or present it the way you need.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Manipulating cell data when entered

    Well, Basically the idea is against standards, and against normal excel usage.

    My honest proposition is:
    try to input your hours and margin in respectively columns A and B (say A2:A10 and B2:B10)
    Then, the sum of A2*B2+A3*B3+...+A10*B10 can be calculated with excel function =SUMPRODUCT(A2:A10,B2:B10)

    But - if there is some rationale behind - OK.
    It is possible with some programming
    See attachment
    In the worksheet Arkusz1 code is procedure (event handler for Worksheet event Change):
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,

    Kaper

+ 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] Formula Needed to copy data from a cell based on data entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 03:16 AM
  2. [SOLVED] If data entered in cell, on same row, copy and paste data from other cells to front sheet
    By Christopher135 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2013, 06:34 PM
  3. Limit data entry in a series of cells if one cell has data entered.
    By Josiah in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-18-2013, 04:55 PM
  4. Excel 2010 Macro: Manipulating a string of data within a cell
    By Vincent2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2013, 01:22 AM
  5. Replies: 8
    Last Post: 01-23-2013, 03: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