+ Reply to Thread
Results 1 to 4 of 4

Sum two cells where one has text with values linked to that text

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Sum two cells where one has text with values linked to that text

    I'm trying to write a formula that will work out the sum of two cells, where one cell has text (which has a specific number value relating to that text) and the other has the number to multiply by. In the attached file, i have the info all laid out how I want column D to look like with the formula working, along with the values relating to the corresponding text in cells AE/AF

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by loki316; 09-29-2015 at 06:34 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Formula

    Hi, welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Sum two cells where one has text with values linked to that text

    Try this. (I have a feeling you mean multiply, not sum?)
    =IF(C2="","",VLOOKUP(B2,$AE$1:$AF$9,2,0)*C2)

    If you really did mean sum, then change to this...
    =IF(C2="","",VLOOKUP(B2,$AE$1:$AF$9,2,0)+C2)

  4. #4
    Registered User
    Join Date
    01-29-2014
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sum two cells where one has text with values linked to that text

    That top one is precisely what i wanted. Thanks very much!!

+ 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: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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