+ Reply to Thread
Results 1 to 3 of 3

Multiply text values with numeric substitutions

  1. #1
    Registered User
    Join Date
    07-11-2009
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    1

    Multiply text values with numeric substitutions

    Hello-

    I have created a simple cash flow Excel sheet to look at income and expenses. It doesn't do much, but I'm having trouble finding the right formula to complete it.

    Since expenses and income happen at different intervals, I created a "Weights" tab where the frequency of a transaction maps to a monthly weighting. For example, getting paid twice a month would get a weighting of 2, and a bill that takes place ever other month would get a weighting of 0.5. I'm using a list to select the frequency when I enter the transactions, but I'd like to multiply the given amount by the weight and sum the weighted values on my "Summary" tab. I'd like to avoid a new column on the "Income" and "Expenses" tabs (which I know works, but it doesn't look as nice).

    Basically, the formula would amount to SUMPRODUCT(A:A, C:C) if I could get the text in column A to be replaced by it's corresponding weight in column C.

    I've attached a worksheet with sample values. Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Multiply text values with numeric substitutions

    Hi,

    Welcome to the forum, does this work for you?

    In B1

    =Income!C1*VLOOKUP(Income!A1,Weights!$A$2:$B$9,2,FALSE)

    In B2

    =Expenses!C1*VLOOKUP(Expenses!A1,Weights!$A$2:$B$9,2,FALSE)
    +Expenses!C2*VLOOKUP(Expenses!A2,Weights!$A$2:$B$9,2,FALSE)
    +Expenses!C3*VLOOKUP(Expenses!A3,Weights!$A$2:$B$9,2,FALSE)
    +Expenses!C4*VLOOKUP(Expenses!A4,Weights!$A$2:$B$9,2,FALSE)
    Last edited by oldchippy; 07-11-2009 at 05:04 PM.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Multiply text values with numeric substitutions

    Here's another way...

    B2:

    =SUMPRODUCT(SUMIF(Weights!A2:A9,Expenses!A1:A4,Weights!B2:B9),Expenses!C1:C4)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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