+ Reply to Thread
Results 1 to 4 of 4

Count certain numbers in column then multiply by sum of other column linked to first.

  1. #1
    Registered User
    Join Date
    11-15-2022
    Location
    Exeter, UK
    MS-Off Ver
    365
    Posts
    2

    Count certain numbers in column then multiply by sum of other column linked to first.

    Hi all, I am a new member here and have searched the threads, but can't seem to find the solution to my problem.

    excel example.jpg

    Above is my table. In the cells underneath the "1 Beds", "2 Beds" and so on, I need to show the number that is the total of the number of relevant bedrooms in column B multiplied by the number of that number of bedrooms house types in column C. I've not explained that very well, but for example the "1 Beds" should show 6 - because there are 3 house types with 1 bedroom in column B and 6 of them in column C (2 each of house types A, B, and C).

    I know I could just use SUMPRODUCT, but the data in the Columns A, B, and C is subject to change, so ideally i would like a formula which picks up on whatever data is those columns, rather than a fixed formula.

    I've tried a couple of different ones that I know, but so far no joy.

    Any and all assistance/tips very welcome! Please let me know if you need any further info.

    Thanks
    Jamie.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Count certain numbers in column then multiply by sum of other column linked to first.

    =SUMIFS() should do that

    your example shows unique house types
    so its just a SUMIFS( C:C,B:B, 1)

    A sample sheet - with examples of SUM expected and WHY

    Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet.

    A sample sheet would help here

    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-15-2022
    Location
    Exeter, UK
    MS-Off Ver
    365
    Posts
    2

    Re: Count certain numbers in column then multiply by sum of other column linked to first.

    Thanks etaf, that's it! I was trying various IF but not that one, I think i was trying to make it too complicated.

    And thanks for the feedback/tips on how to post, i know what to do going forward.

    Thanks again for your quick and excellent help.

    Jamie.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Count certain numbers in column then multiply by sum of other column linked to first.

    you are welcome

+ 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: 6
    Last Post: 08-10-2022, 09:42 AM
  2. How to multiply all numbers in a column?
    By wilkas in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-27-2019, 04:30 AM
  3. Multiply a number by a sequence of numbers in a column
    By Modify_inc in forum Excel General
    Replies: 3
    Last Post: 09-08-2016, 05:28 PM
  4. Count only even numbers and list number in linked column
    By ricklou in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-02-2015, 06:04 AM
  5. [SOLVED] Sort column with equal numbers and linked text
    By keis386 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2014, 06:52 AM
  6. Replies: 8
    Last Post: 03-03-2014, 06:53 AM
  7. [SOLVED] Count repeat numbers in column B based on a condition from Column Al
    By helpbitte in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2012, 10:11 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