+ Reply to Thread
Results 1 to 6 of 6

Multiply text with a quantity

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Lomma, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    3

    Multiply text with a quantity

    Hello guys,

    Could really use some help with a problem in Excel.

    Lets say I have a text and a quantity as seen below

    Hello 3
    Good bye 4
    Good night 2

    Is there any easy way to multiply the text with the quantity to get a list as seen below?

    Hello
    Hello
    Hello
    Good bye
    Good bye
    Good bye
    Good bye
    Good night
    Good night

    Thanks in advance!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Multiply text with a quantity

    Try this:

    Array formula must be confirmed with Ctrl+Shift+Enter key combination

    =IFERROR(INDEX($A$1:$A$3,MATCH(TRUE,MMULT(--(ROW($A$1:$A$3)>=TRANSPOSE(ROW($A$1:$A$3))),$B$1:$B$3)>=ROWS($1:1),0)),"")

    A
    B
    C
    1
    Hello
    3
    Hello
    2
    Good bye
    4
    Hello
    3
    Good night
    2
    Hello
    4
    Good bye
    5
    Good bye
    6
    Good bye
    7
    Good bye
    8
    Good night
    9
    Good night
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Multiply text with a quantity

    A coded solution.
    Input A1:B2 output from G1

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    02-18-2014
    Location
    Lomma, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Multiply text with a quantity

    Wow that was a long formula

    Unfortunetly I could not get it to work in Excel 2007

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Multiply text with a quantity

    ***Array formula must be confirmed with Ctrl+Shift+Enter key combination

    Also, maybe in your region commas need to be replaced with ;

  6. #6
    Registered User
    Join Date
    02-18-2014
    Location
    Lomma, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Multiply text with a quantity

    Quote Originally Posted by Andy Pope View Post
    A coded solution.
    Input A1:B2 output from G1

    Please Login or Register  to view this content.
    Thank you, that worked super!

+ 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. spot text as value and calculate invoice amount from quantity X text value
    By grasshouse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-14-2013, 07:12 AM
  2. Divide monthly Quantity into Weekly quantity ...
    By jitendra.mistry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2010, 01:36 PM
  3. Replies: 5
    Last Post: 11-23-2009, 06:24 PM
  4. excel multiply by different values based on quantity
    By ronzander1 in forum Excel General
    Replies: 1
    Last Post: 01-11-2006, 04:55 AM
  5. Text quantity in Excel form
    By Jake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 09:54 AM

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