+ Reply to Thread
Results 1 to 6 of 6

Populate cell with dollar value based on text criteria and dollar value in separate cells

  1. #1
    Registered User
    Join Date
    03-01-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel Mac 2011
    Posts
    8

    Populate cell with dollar value based on text criteria and dollar value in separate cells

    I have a spreadsheet that I need to calculate a dollar amount in a particular cell.

    The calculation is based on the text content of another cell which leads to one of three cells containing the dollar value.

    i.e. In my total cost column cell BZ8 needs to reference cell N8 and determine whether N8 contains either "King" "Twin" or "Suite". Based on that result it then needs to get the dollar figure from one of three cells containing the relevant price for each of the above options. The King value is located in L2, Twin in L3, Suite in L4. Once it's determined what type of room it is based on the text I then want it to popular BZ8 with the relevant dollar amount.

    I'm not sure if this is an If formula or and OR formula or something else entirely.

    Any help would be much appreciated.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Populate cell with dollar value based on text criteria and dollar value in separate ce

    If you have something like this:

    Data Range
    K
    L
    1
    Size
    Price
    2
    King
    550
    3
    Twin
    750
    4
    Suite
    1100


    Then you can use this formula:

    =SUMIF(K2:K4,N8,L2:L4)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-01-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel Mac 2011
    Posts
    8

    Re: Populate cell with dollar value based on text criteria and dollar value in separate ce

    I actually need it to look for the specific text to then determine which cell it goes to to pull the pricing if that makes sense?

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Populate cell with dollar value based on text criteria and dollar value in separate ce

    With N8 contains either King, Suite or Twin
    BZ8:
    ="Your formula"&IF(OR(N8="King",N8="Twin",N8="Suite"),"$","")
    Note that this result is Text with $ sign. In order to keep it as number for calculation, use LEFT(BZ8,LEN(BZ8)-1) instead of BZ8
    Quang PT

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Populate cell with dollar value based on text criteria and dollar value in separate ce

    Try this in BZ8
    Please Login or Register  to view this content.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Populate cell with dollar value based on text criteria and dollar value in separate ce

    Quote Originally Posted by tanyaslater View Post
    I actually need it to look for the specific text to then determine which cell it goes to to pull the pricing if that makes sense?
    Well, that's what the SUMIF function is doing.

    I guess I don't understand what you want to do. Can you explain it with more detail?

+ 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] Formula to create a blank cell based on a dollar amount in another cell.
    By avidcat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2014, 02:11 AM
  2. Replies: 4
    Last Post: 09-14-2011, 06:23 PM
  3. Replies: 11
    Last Post: 02-20-2011, 10:46 PM
  4. Replies: 2
    Last Post: 09-10-2009, 05:40 AM
  5. add dollar values based on certain criteria.
    By Karleajensar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2007, 03:20 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