+ Reply to Thread
Results 1 to 2 of 2

Inserting a vice-versa function in Excel

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Boston, Massachusetts
    Posts
    1

    Inserting a vice-versa function in Excel

    I have been developing costing spreadsheets for my company, and I would like to know if there is a function in Excel which allows two cells to be a function of each other. For example, Cell A2 has a formula which produces the sales price. Another cell B2 displays the margin based on the sales price produced in A2. Is there a way of making it possible so that I simply type a desired margin into cell B2, and A2 produces the sales price which reflects that margin, or vice-versa? I don't know what to call it: "fungibility" or a "vice-versa" function.

    So far I have been calculating two separate formulas for both sales price and margin, but they are not a function of each other in these formulas.

    Appreciate any comments

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    You cannot do this without code. If you change A2 to a new sales price, your formula gets replaced - the same would be true for the profit margin.

    The following code assumes that your cost is in cell C2.

    Right click on the sheet your are using, and choose view code. Paste the following into the code box.

    Please Login or Register  to view this content.

+ 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. Urgent (University) Please Help m with an EXcel Function
    By aaronjason8992 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-26-2008, 06:24 AM
  2. Create custom function to exceed 7 nested If functions in Excel 2003/XP/2000/97
    By seanyeap in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2008, 08:54 AM
  3. Writing VBA Macro or Excel Function
    By venkat_kodi in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-06-2007, 03:21 PM
  4. Inserting List in IF function
    By pseudocode in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-31-2007, 07:51 PM
  5. Excel maro macro to look up a closed excel function workbook.
    By hittingtime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2006, 10:00 PM

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