+ Reply to Thread
Results 1 to 5 of 5

HELP: Using IF/VLOOKUP formulas to puill and add values into single cell

  1. #1
    Registered User
    Join Date
    09-03-2015
    Location
    Chicagop
    MS-Off Ver
    2010
    Posts
    13

    Question HELP: Using IF/VLOOKUP formulas to puill and add values into single cell

    So I am working on a mutual fund model and would like to calculate the weighted returns by sector for the stock holdings of the fund. To do this I will need to derive a formula using an IF() statement to verify the chosen sector and VLOOKUP() to pull the weighted returns of each of the stocks.

    Here is simplified sample of what my sheet looks like:

    AAPL Tech ret.a
    YHOO Tech ret.b
    JPM Finan ret.c
    FEYE Tech ret.d
    BAC Finan ret.e

    For example, let's say I want to calculate the weighted return of my financial stocks. I would need to pull ret.c and ret.e and add them together.

    So here is a breakdown of how I am looking to combine these functions:

    1. Use an IF() statement which will return TRUE for all stocks included in specified sector
    2. Use VLOOKUP() to pull the weighted return from each included stock
    3. Add these values together in order to return the total weighted return for the specified sector

    Any help and/or guidance would be much appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: HELP: Using IF/VLOOKUP formulas to puill and add values into single cell

    What are the weights based on?

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: HELP: Using IF/VLOOKUP formulas to puill and add values into single cell

    Assuming that data was A1:C5, then:

    =SUMPRODUCT((B1:B5="Finan")*(C1:C5))

    =SUMIF(B1:B5,"Finan",C1:C5)

    Either of these should work.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: HELP: Using IF/VLOOKUP formulas to puill and add values into single cell

    If they're all in the same table then why not try the SUMIFS function instead?
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    09-03-2015
    Location
    Chicagop
    MS-Off Ver
    2010
    Posts
    13

    Re: HELP: Using IF/VLOOKUP formulas to puill and add values into single cell

    Thanks guys! Wasn't aware of that function.

+ 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. Multiple vlookup "lookup values" in a single cell?
    By catccc in forum Excel General
    Replies: 8
    Last Post: 10-19-2015, 05:10 PM
  2. Email single sheet with values and no formulas
    By tigershoes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2014, 03:16 PM
  3. vlookup multiple values in single cell separated by spaces
    By aimeecrystalaid in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 12-15-2013, 10:23 PM
  4. [SOLVED] Need Vlookup to pull multiple values (preferabbly in a single Cell)
    By megx27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 01:02 AM
  5. [SOLVED] Vlookup & return all unique values to a single cell
    By PY_ in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-24-2013, 02:42 AM
  6. Email Single Worksheet - No Formulas, Values Only
    By gjohn282 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2013, 04:40 PM
  7. Replies: 8
    Last Post: 11-08-2010, 10:14 AM

Tags for this Thread

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