+ Reply to Thread
Results 1 to 5 of 5

Formula needed for Text to repeat base on cell value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Formula needed for Text to repeat base on cell value

    Hi, in Column A, i have currency. in B, i have the number of times the currency repeat. While in Column F show the final result. Example, GBP 2 mean F2 and F3 is GBP GBP. WHat formula should i used? Refer attachment for a better understanding.
    Attached Files Attached Files

  2. #2
    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
    28,436

    Re: Formula needed for Text to repeat base on cell value

    Look at COUNTIF

    Misread the requirement!
    Last edited by JohnTopley; 10-03-2017 at 03:41 AM.

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

    Re: Formula needed for Text to repeat base on cell value

    or
    f2=IFERROR(INDEX($A$2:$A$5,MATCH(1,INDEX((COUNTIF($F$1:$F1,$A$2:$A$5)<$B$2:$B$5)+0,0),0)),"")
    Try this and copy towards down
    Samba

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

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

    Re: Formula needed for Text to repeat base on cell value

    f2=IF(ROWS(F$2:F2)>SUM(B$2:B$5),"",LOOKUP(ROWS($F$2:$F2),MMULT(((ROW($B$2:$B$5)>=TRANSPOSE(ROW($B$2:$B$5)))+0),$B$2:$B$5)-$B$2:$B$5+1,$A$2:$A$5))

    Try this array formula (confirm with shift+ctrl+enter) and copy towards down

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

    Re: Formula needed for Text to repeat base on cell value

    Posted to wrong thread.. Sorry.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. macro needed to repeat cell values for a specified number of times
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2014, 06:54 AM
  2. Replies: 4
    Last Post: 03-08-2014, 08:01 AM
  3. Series Base Formula needed
    By amitjay in forum Excel General
    Replies: 2
    Last Post: 09-24-2012, 08:23 AM
  4. Replies: 2
    Last Post: 01-29-2012, 07:08 AM
  5. Macro Formula needed to find a value and remember the row of the value, repeat
    By 66Deuce in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2011, 09:57 PM
  6. Help with repeat formula needed
    By sundogkid in forum Excel General
    Replies: 3
    Last Post: 05-31-2009, 01:14 PM
  7. Macro needed to fill down other cell base on condition
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2009, 08:39 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