+ Reply to Thread
Results 1 to 15 of 15

Multiplying by various paremeters to a single cell

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Multiplying by various paremeters to a single cell

    I am struggling to get a solution to work, any advice would be gratefully received.

    In 'Sheet 1' I have:

    Name % Share
    AB 10
    CD 20
    EF 30
    GH 20 etc. etc.


    In 'Sheet 2' I have:

    Quarter Name Base sum
    1
    2
    3

    I am entering multiple Quarters per Name and Base sums.

    i.e. I could have AB appearing 5 times with an entry for quarter 1 and 6 times with an entry for Quarter 2.


    In 'Sheet 3' I have:

    Quarter Total Base Total % Share
    1
    2
    3

    'Sheet 3' is a summary sheet, so all entries from Sheet 2 compact down into single row quarters.


    I am using the following:

    =SUMIF('Sheet 2'!A:A,'Sheet 3'!C2,'Sheet 2'!C:C)

    To give me a total base cost against each quarter. I am copying that formula down to each quarter.

    I want to calculate in 'Sheet 3' for each quarter 'Total % Share' which would be the total base for each 'Name', multiplied by their respective '% Share' in 'Sheet 1'.

    I know I can do this by adding a column to 'Sheet 2', calculating that via a lookup and then summing that in a similar way to the base sum.

    However for various reasons, I don't want that info to appear on sheet 2 and would like to avoid a separate 'data table' if possible. I have tried various array formulas but I am only ending up with a 0 result which is clearly wrong.

    Can anyone help and I hope the above is clear.

    Thanks!

  2. #2
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Multiplying by various paremeters to a single cell

    Can you post a sample of your data? It'll be easier for someone to help you if they can actually see what you're working with.

  3. #3
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    I attach sheet.

    Cell C:C in Sheet3 is where I am having trouble.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Multiplying by various paremeters to a single cell

    Ok, I'm a little confused. You said:

    "I want to calculate in 'Sheet 3' for each quarter 'Total % Share' which would be the total base for each 'Name', multiplied by their respective '% Share' in 'Sheet 1'."

    Can you explain this a little more clearly? You're wanting the total of each "Name's" "% Share" of the "Total Base Cost?" Wouldn't that just be the "Total Base Cost?"

  5. #5
    Registered User
    Join Date
    06-27-2017
    Location
    Zagreb, Croatia
    MS-Off Ver
    Standard 2010
    Posts
    2

    Re: Multiplying by various paremeters to a single cell

    Is it acceptable to add another column in Sheet 2? For example, I would use VLOOKUP to calculate share for each row using "=VLOOKUP(B2;Sheet1!A:B;2;0)*C2" (for row 2, you can copy function for other rows). The result is displayed in column D.

    Then you can simply use the same SUMIF function "=SUMIF(Sheet2!A:A;A2;Sheet2!D:D)" in Sheet 3 to calculate sum of all shares for each quarter.

  6. #6
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    It is the additional columns that I want to avoid. That is the method that I am currently using.

    The spread sheet that I am using has 000's of lines of data and by adding a further column and putting a formula into each cell is making the sheet large and cumbersome. I also want to avoid it because I have multiple users using the sheet, some of which are not excel savvy and are inserting lines etc. which at times is breaking it.

  7. #7
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    To make it a bit simpler, I attach amended worksheet.

    On Sheet2 I have added a column which calculates the % Share.

    On Sheet3 I have summed this % Share against quarters.

    I am trying to make an array formula that will avoid the need to have the additional column in Sheet 2.

    Hope that clarifies and thanks for the help so far
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    If anyone can help, it would be gratefully received.

  9. #9
    Registered User
    Join Date
    06-27-2017
    Location
    Zagreb, Croatia
    MS-Off Ver
    Standard 2010
    Posts
    2

    Re: Multiplying by various paremeters to a single cell

    Sorry, I don't know if this is possible using a single cell. If it is, it's above my pay grade.

    One other thing that comes to mind is using another sheet (sheet 4) that summarizes total share by quarter and name. This sheet can be protected and hidden, so people can't access it. Then you use that summary to calculate summary by quarters on sheet 3.

  10. #10
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Multiplying by various paremeters to a single cell

    Quote Originally Posted by Lithi View Post
    To make it a bit simpler, I attach amended worksheet.

    On Sheet2 I have added a column which calculates the % Share.

    On Sheet3 I have summed this % Share against quarters.

    I am trying to make an array formula that will avoid the need to have the additional column in Sheet 2.
    If your simplified solution provided the desired result, is it possible for you to "copy/paste special-values" after the calculation has been performed, then simply delete the additional column? Or is it necessary to have the formulas stay in there?

  11. #11
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    The actual spread sheet is continually being updated, that is why I am an trying to find a single cell solution, so that the figure updates as data is put into Sheet2.

    Thanks for the help and suggestions so far.

  12. #12
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Multiplying by various paremeters to a single cell

    In that case, similar to hdolenec, I'd suggest a combination of hiding and protecting cells and/or sheets.

    Perhaps duplicate Sheet2? Have Sheet2 with the column you DON’T want to share (the one that got you to your desired result) be hidden and protected and then have its duplicate [Sheet2(2)] be a cell-to-cell copy just without the column you don’t want shared (i.e.: Sheet2!A1=Sheet2(2)!A1, Sheet2!A2=Sheet2(2)!A2, etc.)

    Not the most elegant solution, but it gets you where you’re trying to go…

    EDIT: I did some research and found a "VeryHiddenSheet" in VBE that ensures a hidden tab can't be unhidden by any users, it doesn't even show up in 'unhide' dialogue boxes, so user won't even know it's there. Kinda cool; never knew this was a thing!
    Last edited by Mvaldesi; 06-28-2017 at 12:15 PM.

  13. #13
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    Thanks for the help both.

    VeryHiddenSheets do sound interesting!

  14. #14
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    267

    Re: Multiplying by various paremeters to a single cell

    It's easy; check it out below; just don't tell any of the end users of your report how to do it!

    http://www.techrepublic.com/blog/mic...lly-hide-them/

    If you think your issue is resolved (as best we could muster,) go ahead and mark the thread SOLVED!

    Best wishes!

  15. #15
    Registered User
    Join Date
    03-28-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Re: Multiplying by various paremeters to a single cell

    I solved my problem and attach the solution.

    Thanks for all the help and the handy tips on hidden hidden sheets!

+ 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] How to subtract single cells with double digits into a single digit of a single cell.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2021, 02:05 AM
  2. Multiplying a cell as a whole number
    By sobcr1864 in forum Excel General
    Replies: 5
    Last Post: 02-28-2015, 09:42 AM
  3. [SOLVED] multiplying two cell locations
    By estragon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-19-2013, 09:00 AM
  4. Multiplying measurements from the same cell
    By Zakka in forum Excel General
    Replies: 2
    Last Post: 03-26-2010, 10:45 AM
  5. multiplying cell value with text in it
    By bobbied in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-22-2010, 06:03 PM
  6. multiplying a cell by another which contains a formula
    By asikora15 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2008, 10:50 AM
  7. multiplying a cell by a set number
    By gunny86 in forum Excel General
    Replies: 2
    Last Post: 09-07-2005, 03: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