+ Reply to Thread
Results 1 to 13 of 13

Need cell to be a number when a word is chosen from a dropdown and then added to other cel

  1. #1
    Registered User
    Join Date
    04-13-2017
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    13

    Need cell to be a number when a word is chosen from a dropdown and then added to other cel

    I'm going to try and explain this as best as I can.

    I have a drop down in X9 with 3 different text options, each one equals a number in cell AB9. The formula in AB9 needs to add the amount chosen in XP and add the amounts in T9, U9, V9, and W9.

    Here are my attempts to make this happen and none of them work.

    =SUM(COUNTIF(X9"=No Transfer",30),COUNTIF(X9"=Transfer",15),COUNTIF(X9"=eHealth",15),T9:W9)

    =IFERROR(IF(G16<100%,"FAIL",SUM(COUNTIF(F17:F18,"=No"),COUNTIF(F17:F18,"=Yes"))),0)

    =SUM(COUNTIF(X9="No Transfer",30),COUNTIF(X9"=Transfer",15),COUNTIF(X9"=eHealth",15),T9:W9)


    This is what it looks like. I am trying add the prices for stand alone health products in T9-W9 with either $30 for "No Transfer" or $15 for "Transfer in house" or "Transfer eHealth" to equal the correct number in AB9.
    Notice Rows 10 and 11 don't add the $15

    Capture.PNG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,321

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  4. #4
    Registered User
    Join Date
    04-13-2017
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    13

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    The numbers can be anything in T through W.
    No Transfer= 30
    Trans Inhouse= 15
    Trans eHealth=15

    I put in the notes what each one is supposed to equal. If you notice only No Transfer works correctly.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-13-2017
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    13

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Thank you!

  6. #6
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Hi, to all!

    For your particular examples, you can use:
    [AB8] : =SUM(T8:W8,15+15*(X8="No Transfer"))

    Blessings!

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,000

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    In AB8


    =IFERROR(SUM(T8:W8)+VLOOKUP(X8,$AL$8:$AN$10,3,0),0)

    Copy down

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    ab8=SUM(T8:W8,IFERROR(INDEX({30,15,15},MATCH(X8,{"No Transfer","Trans Inhouse","Trans eHealth"},0)),0))
    try this and copy towards down
    Note: in your dropdown list (column x), change Trans eHeatlh as Trans eHealth
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    Registered User
    Join Date
    04-13-2017
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    13

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    X is a drop down menu with three options.
    No Transfer
    Trans Inhouse
    Trans eHealth

    When selected it is supposed to add 30 for "No Transfer" or 15 for "Trans Inhouse", or 15 for "Trans eHealth" in AB.

    All of that is to be added to T, U, V, W to give the final answer in AB.

    Example:
    T8 = $10, U8 = $5, V8= $0 and W8 = $0. All these need to be added together. Then X8 "No Transfer" was chosen so that is $30.
    all this together would be $45 in AB8
    Another Example:
    T8 = $21, U8 =15, V8 = $2, W8 = $7, X8 "Trans Inhouse" = $15: $60 in AB8

  10. #10
    Registered User
    Join Date
    04-13-2017
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    13

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Everything works but eHealth. When I test it the eHealth option doesn't add $15 to AB

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Quote Originally Posted by Compliance Queen View Post
    X is a drop down menu with three options.
    No Transfer
    Trans Inhouse
    Trans eHealth

    When selected it is supposed to add 30 for "No Transfer" or 15 for "Trans Inhouse", or 15 for "Trans eHealth" in AB.

    All of that is to be added to T, U, V, W to give the final answer in AB.

    Example:
    T8 = $10, U8 = $5, V8= $0 and W8 = $0. All these need to be added together. Then X8 "No Transfer" was chosen so that is $30.
    all this together would be $45 in AB8
    Another Example:
    T8 = $21, U8 =15, V8 = $2, W8 = $7, X8 "Trans Inhouse" = $15: $60 in AB8
    Please look at your dropdown there is a spelling mistake,
    it is not "Trans eHealth" in your dropdown change the dropdown list

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,000

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Did you try solution in #7?

  13. #13
    Registered User
    Join Date
    04-13-2017
    Location
    Dallas
    MS-Off Ver
    2016
    Posts
    13

    Re: Need cell to be a number when a word is chosen from a dropdown and then added to other

    Ha! I am dyslexic. If you wouldn't have pointed that out I wouldn't have seen it. I actually checked for misspellings and didn't see it.

    Thank you so 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: 4
    Last Post: 07-25-2014, 08:36 PM
  2. Set value of cell if text word is chosen
    By garyw383 in forum Excel General
    Replies: 4
    Last Post: 11-22-2013, 02:30 AM
  3. Replies: 6
    Last Post: 05-21-2013, 04:57 PM
  4. Changing number of days in a month based on month chosen from a dropdown list.
    By st_judeu@yahoo.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-08-2013, 02:26 PM
  5. Replies: 0
    Last Post: 11-12-2012, 10:33 AM
  6. Output value based on what is chosen in dropdown list
    By russell.suereth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-03-2011, 09:51 AM
  7. Increasing Values by % chosen from a dropdown list/box.
    By jmadsen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2011, 11:28 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