+ Reply to Thread
Results 1 to 7 of 7

Using Multiple Formulas in One Cell

  1. #1
    Registered User
    Join Date
    08-14-2015
    Location
    Richmond
    MS-Off Ver
    2010
    Posts
    4

    Using Multiple Formulas in One Cell

    Hello,

    I have a problem regarding a large spreadsheet where I need to have one formula that calculates the value of the cell from other data within the same line, but then have another formula that will completely wipe-out the data if certain parameters are met.

    To be specific, the cell in question gets its value from 14 other cells that all exist in the same line item. On some occasions though, there are duplicates of the entire line item on the very next line but shouldn't be charged because both exist under one overall contract, thus making the second calculated cell in the contract null.

    My question is, how do I have a cell that exists based on the values of items that exist within the line, but then can be also be considered "0" if it exists as one of the duplicates under the entire umbrella of a single contract?

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

    Re: Using Multiple Formulas in One Cell

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: Using Multiple Formulas in One Cell

    j3b1l1,

    I'm not 100% this is the solution you're looking for. Attached is a file that shows how to use an IF statement to calculate duplicate values differently. Hope this helps!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-14-2015
    Location
    Richmond
    MS-Off Ver
    2010
    Posts
    4

    Re: Using Multiple Formulas in One Cell

    I'm going to attach a sample workbook with anonymous values to help illustrate the problem. Be back shortly.

  5. #5
    Registered User
    Join Date
    08-14-2015
    Location
    Richmond
    MS-Off Ver
    2010
    Posts
    4

    Re: Using Multiple Formulas in One Cell

    Here's an anonymous workbook that I think will help better display the issue.

    The BEFORE sheet shows the raw data. The 'Amount Charged' column has a formula that calculates the amount each individual line item will be charged for each requirement. My intent is to be able to make multiple clients that exist under one contract not get charged more than once, as illustrated in the AFTER sheet. The amount charged is only once per contract, not once per line item. I hope this makes things clear.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-14-2015
    Location
    Richmond
    MS-Off Ver
    2010
    Posts
    4

    Re: Using Multiple Formulas in One Cell

    I guess I should also point out the actual costs associated with each column. The "Requirement" column is $10.00 and each additional requirement is $5.00. This gives the total amount charged per line and is the basis of the formula in the "Amount Charged" column.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,253

    Re: Using Multiple Formulas in One Cell

    Based on your sample sheet

    in J2

    =IF(COUNTIF($B$2:B2,$B2)>1,0,5+SUM(IF($C2:$I2>0,5)))

    Enter with Ctrl+Shift+Enter

    Copy down

    Assumes C=10, D:I=5

+ 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] Multiple formulas in one cell
    By LocalAl in forum Excel General
    Replies: 8
    Last Post: 08-17-2015, 01:25 PM
  2. [SOLVED] Multiple IF Formulas in one Cell
    By moni_tm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2015, 01:36 PM
  3. [SOLVED] multiple if formulas in one cell
    By kingsnipes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-15-2013, 01:03 AM
  4. [SOLVED] multiple formulas needed in one cell to create a value in a new cell
    By jamietofs in forum Excel General
    Replies: 13
    Last Post: 11-18-2012, 06:40 PM
  5. Multiple formulas in a cell !
    By Petter120 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-18-2012, 05:17 PM
  6. 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
  7. Replies: 2
    Last Post: 03-29-2010, 07:07 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