+ Reply to Thread
Results 1 to 2 of 2

use value of one cell to determine which formula to use in another

  1. #1
    Registered User
    Join Date
    08-16-2015
    Location
    Bristol
    MS-Off Ver
    2013
    Posts
    3

    use value of one cell to determine which formula to use in another

    Hello,

    I am trying to put together a list of products with the unit price, VAT and Sale price.

    I have a column that works out VAT on all products, and then one that adds this to the unit price to give the overall cost for the company. I now need to add another column with tax code (mainly 1 or 2). So the table is as follows

    Unit price (without VAT), VAT Code, VAT, Unit price & VAT, Sale Price

    so, if there is a 1 in the VAT Code colum, the VAT formula needs to calculate VAT (20%), if there is a 2 in the VAT Code column, then this will need to display 0% VAT (or run a slightly different formula if tax is at a percentage other than 0% or 20%).

    Does anyone have any ideas on what might work?

    Thanks

    Rhod

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: use value of one cell to determine which formula to use in another

    Hi,

    IF function would work here, for calculating VAT if VAT Code is in column B, then VAT = IF(B2=1,A2*20%, IF(B2=2,A2*xx%,0%))

+ 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. formula to determine which cell is NOT blank and display that cell's text?
    By LWSheehan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2015, 08:54 PM
  2. Use formula to determine cell reference
    By Esme_ in forum Excel General
    Replies: 1
    Last Post: 03-25-2014, 10:55 PM
  3. [SOLVED] Determine if a Cell has a Formula or Value
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2012, 07:40 AM
  4. Determine if Cell Has Formula
    By Dr.SUN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2010, 06:25 PM
  5. How do you determine what formula a cell is used in
    By jgkocis in forum Excel General
    Replies: 3
    Last Post: 11-27-2007, 10:28 PM
  6. Replies: 2
    Last Post: 12-22-2005, 12:45 PM
  7. Determine if another cell is hidden in a Formula
    By JWhales in forum Excel General
    Replies: 0
    Last Post: 07-26-2005, 11: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