+ Reply to Thread
Results 1 to 10 of 10

Concatenate cell with values retained in cells

  1. #1
    Registered User
    Join Date
    03-23-2009
    Location
    usa
    MS-Off Ver
    Excel 2003, 2013
    Posts
    16

    Concatenate cell with values retained in cells

    I have the following reference table, that i would like to make it as a drop down list that shows like below. When i utilize this drop down list, the cell that is selected should carry the value of 10, or 20, or 30. That way on another cell i can do some mathematical multiplication. Is this possible?

    Reference Table
    Model Power (Amps)
    A 10
    B 20
    C 30
    D 40
    E 50

    Drop Down List that is in Sheet2
    A-10 A
    B-20 A
    C-30 A
    D-40 A
    E-50 A

    Sheet2
    Amps (Drop Down List) Voltage Power
    A-10A 480 4500
    B- 20A 480 9600
    C-30A 480 14400
    D-40A 480 19200
    E-50A 480 24000

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Concatenate cell with values retained in cells

    AmazingTrans, Good afternoon.

    If you really need to use your DropDown List as showed, try to use:

    A1 --> Your Amps code

    B1 --> Your Voltage

    C1 --> The Result --> =B1 * (--MID(A1,3,2))

    Please, tell us if it worked for you.

    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  3. #3
    Registered User
    Join Date
    03-23-2009
    Location
    usa
    MS-Off Ver
    Excel 2003, 2013
    Posts
    16

    Re: Concatenate cell with values retained in cells

    Mazz,

    I tried that and it did not.
    C1 --> The Result --> =B1 * (--MID(A1,3,2)) ==> -480
    C1 --> The Result --> =B1 * (MID(A1,3,2))==> -480
    C1 --> The Result --> =B1 * (MID(A1,4,1))==> 480

  4. #4
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Concatenate cell with values retained in cells

    AmazingTrans, Good evening.

    Are you sure that your Amps is EXACTLY as you showed at message: A-10A

    This can make all the difference in how the formula works.

    Please, review the data.

    I'm sure that the formula I gave to you works well.

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Concatenate cell with values retained in cells

    As a rule of thumb, it's a bad idea to have your cell display one thing and contain something different; it's very hard to maintain.

    Can you split it into two cells? Set the model as the dropdown, then grab the amperage with a lookup, and run your equations off your lookup values?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  6. #6
    Registered User
    Join Date
    03-23-2009
    Location
    usa
    MS-Off Ver
    Excel 2003, 2013
    Posts
    16

    Re: Concatenate cell with values retained in cells

    Mazz,

    I tested it again, with the exact data it works. I guess, i have to be more specific with my testing.
    The first part where it is A,b,c,d,e; instead of that i have all kind of model numbers with different lengths.
    But, there is one common thing here which is the number is always after the dash, and also ignore the last A part.

    HTC A-10A 480 4800
    Iphone B-20A 480 9600
    Android C-30A 480 14400
    Samsung D-40A 480 19200
    Apple E-150A 480 24000

    I guess i can try to split the form into 2 cells, if i do that, is it possible to include unit into a cell, and do the math instead, or the unit also needs to be in another cell?

  7. #7
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Concatenate cell with values retained in cells

    AmazingTrans, Good afternoon.

    I'm sorry, I'm looking forward to helping you, but with each message I'm getting even more confused by your real need.

    If it is easy for all of us, please save your spreadsheet on a free website, www.sendspace.com or any other, and put the link here for download.

    Show us what you have of data and what you really need to get as a result.

    Give us a concrete example.

  8. #8
    Registered User
    Join Date
    03-23-2009
    Location
    usa
    MS-Off Ver
    Excel 2003, 2013
    Posts
    16

    Re: Concatenate cell with values retained in cells

    Sorry for the difficult explanation. As I was trying to get it to work, I figured a better way to do this, but it still does not work. At least I can show it by pictures.
    On the power field, I tried utilizing Vlookup to search for the text. Somehow, i can't get it to work for the other rows still.

    lIqKuav.png

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,850

    Re: Concatenate cell with values retained in cells

    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Concatenate cell with values retained in cells

    AmazingTrans, Good evening.

    The suggestion of our gentle moderator is always ideal.
    Greetings from Brazil AliGW !

    If you had done this in the first message your doubt would have already been solved.


    In the meantime, try using this formula:

    C2 -->
    Please Login or Register  to view this content.
    OR
    Please Login or Register  to view this content.
    Is that what you want?

    I hope it helps.

+ 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. Concatenate multiple cell values based on matching adjacent cells
    By mkrzy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2013, 02:40 AM
  2. Concatenate cells with delimiter, new row for values after blank cells
    By testerss in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2011, 04:26 PM
  3. COMBOBOX VALUES NOT BEING RETAINED
    By pmind in forum Excel General
    Replies: 0
    Last Post: 03-20-2006, 08:35 AM
  4. [SOLVED] COMBOBOX VALUES NOT BEING RETAINED
    By pmind in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2006, 08:35 AM
  5. COMBOBOX VALUES NOT BEING RETAINED
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2006, 04:25 PM
  6. Replies: 0
    Last Post: 03-17-2006, 04:15 PM
  7. Formatting cells is not retained when saved as csv file
    By sheba0907 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-07-2005, 03:05 PM
  8. [SOLVED] Cell Content from UserForm Not Retained
    By D.Parker in forum Excel General
    Replies: 3
    Last Post: 04-27-2005, 12: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