+ Reply to Thread
Results 1 to 8 of 8

2 formulas in one cell?

  1. #1
    Registered User
    Join Date
    01-07-2021
    Location
    Pennsylvania, USA
    MS-Off Ver
    365 v2011
    Posts
    3

    2 formulas in one cell?

    Trying to get two formulas for one cell for a created estimate.
    For example: D12 represents units/amounts with a data validation list from 1-10, while F12 represents the total fee. The formula is D12*625.
    I shortly realized there are times a discount is given.
    Therefore, E12 will represent 10%, 20%, and 30%- how can I keep the same formula for the total fee while adding a discount?
    Attached Files Attached Files
    Last edited by kyspi095; 01-07-2021 at 02:40 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: 2 formulas in one cell?

    This, maybe?

    =625*D12*(100-E12)/100
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: 2 formulas in one cell?

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: 2 formulas in one cell?

    Adding a discount implies subtracting it, so you could try this in F12:

    =IF(D12="","",D12*(1-E12)*625)

    If the 625 can be variable depending on what has been ordered, then you could use a VLOOKUP table to return that value.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    01-07-2021
    Location
    Pennsylvania, USA
    MS-Off Ver
    365 v2011
    Posts
    3

    Re: 2 formulas in one cell?

    Can you show me an example of what you mean?

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: 2 formulas in one cell?

    If you are asking me, then I will need to see an example Excel workbook - the yellow banner at the top of the screen gives details of how you can attach a workbook to one of your posts.

    Pete

  7. #7
    Registered User
    Join Date
    01-07-2021
    Location
    Pennsylvania, USA
    MS-Off Ver
    365 v2011
    Posts
    3

    Re: 2 formulas in one cell?

    I have included the attachment
    Attached Files Attached Files

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: 2 formulas in one cell?

    You have a cost for each of those procedures listed, and you have chosen to embed these within each formula, e.g. for Orthopantogram, pre-op it is 120, but on the next row it is 625 for a different procedure. This means that you have a different formula on each row, and, furthermore, if the charges change you will have to edit all those cells manually.

    However, if you had a separate table which listed all the procedures and against each one you listed the charge, then you can use a VLOOKUP formula to bring the appropriate charge across, rather than hard-coding it within each cell. This gives you the advantage that if the charges change then you only need to change them within the table, where they are visible and easy to spot any mistakes.

    The table could be in another area of the same sheet, but away from the main body, or you could put it on another sheet.

    Hope this helps.

    Pete

+ 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. Replies: 4
    Last Post: 10-19-2016, 02:45 PM
  2. Using Cell references in file paths for formulas to create dynamic formulas
    By MichaelStokesJr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 11:49 AM
  3. View cell info instead of formulas / Evaluate formulas
    By whitetea in forum Excel General
    Replies: 2
    Last Post: 05-20-2012, 10:08 AM
  4. Excel 2007 : Future Date Formulas and Adjacent Cell Formulas
    By thetaylor13 in forum Excel General
    Replies: 4
    Last Post: 02-09-2011, 04:33 PM
  5. Multiple formulas in selected cell without damaging previous formulas.
    By excel5111987 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2011, 06:15 AM
  6. Replies: 5
    Last Post: 05-05-2008, 02:22 PM
  7. Formulas in a cell don't work as formulas.
    By Lyle McElhaney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2007, 05:04 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