+ Reply to Thread
Results 1 to 11 of 11

Multiplying Letters and Numbers

  1. #1
    Registered User
    Join Date
    03-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Multiplying Letters and Numbers

    Hi everyone, first time posting. Kind of a newbie at excel here, and I've gone through most of the forum and some of the internet in a search for this answer, and I apologize if it's been answered before, but I couldn't find it.

    I'm trying to multiply a column of letters by a column of numbers and have the resulting sum product appear in one cell.

    I'd like to keep the formating of the text and only have numbers greater than 0 contribute to the multiplication (showing up in the answer). The problem I'm working on is related to chemical reactions, and I've attached an example sheet.

    I can't say I really know how to work with VBA, so a formula solution would be fantastic if there is a way to do it without VBA.

    Any help would be incredibly appreciated! Thank you for your time.

    Best.
    Attached Files Attached Files
    Last edited by eagg; 03-26-2011 at 09:31 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Multiplying Letters and Numbers

    Hi,

    I have 2 possible answers on the attached. I need to study a little more and see how the good guru's do this to get more tools in my box.

    There needs to be a way using Small and not counting zeros and Array Formulas that would give you what you want. It is just a tool I don't have at hand, yet!
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    03-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Multiplying Letters and Numbers

    Hi Marvin,

    I've been working on it for a while now, and the best I could come up with was the attached.

    There's got to be a way to do this without creating new columns, I just can't figure it out. The problem is that there are 300 or so of these "reactions" and creating new columns just doesn't seem reasonable.

    Thanks for the reply, I'm gonna keep working on it. I appreciate it!

    Best.

  4. #4
    Registered User
    Join Date
    03-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Multiplying Letters and Numbers

    Oops, forgot to attach the new file. Here it is!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Multiplying Letters and Numbers

    Quote Originally Posted by MarvinP View Post
    Hi,

    I have 2 possible answers on the attached. I need to study a little more and see how the good guru's do this to get more tools in my box.

    There needs to be a way using Small and not counting zeros and Array Formulas that would give you what you want. It is just a tool I don't have at hand, yet!

    I really like the helper column, I'm going to look into that further. I suppose if I had more than 4 compounds participating in the reaction, I'd have to add INDEX and MATCH for the number of participating compounds.

  6. #6
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Multiplying Letters and Numbers

    try this and let us know if it works for you.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Multiplying Letters and Numbers

    Quote Originally Posted by Charlie_Howell View Post
    try this and let us know if it works for you.
    Hi Charlie,

    Thanks, it looks very nice. I suppose I can automate it by putting a formula under the check box for compound participation. The real spreadsheet that I have has 300 Compound Reaction Columns, which should give a list of 300 reactions. I'm going to work on trying to make it compatible, so it displays all 300 reactions in a reaction formula.

    Best.

  8. #8
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Multiplying Letters and Numbers

    sounds good! if you need help just give us a yelp...lol

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Multiplying Letters and Numbers

    another way
    Attached Files Attached Files
    Last edited by martindwilson; 03-26-2011 at 08:41 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  10. #10
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Multiplying Letters and Numbers

    very nice Martin...Me likey

  11. #11
    Registered User
    Join Date
    03-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Multiplying Letters and Numbers

    Quote Originally Posted by martindwilson View Post
    another way

    This is great. Thanks for all the help guys! I really appreciate it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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