Sequencial Pairs on text and numbers

jazzista

Board Regular
Joined
Sep 15, 2014
Messages
86
Hello Forum. I have a list of invoices and dates and need a formula so that the formula creates a pair for each invoice and date. I have a list of invoices like this:

Inv#1
Inv#2
Inv#3
I need a formula that can do a pair like this from the list above:
Inv#1
Inv#1
Inv#2
Inv#2
Inv#3
Inv#3 .. and so on

Same with dates.
12/31/2017
01/31/2018
02/28/2018

I need a formula that can emulate the invoice pair as follows
12/31/2017
12/31/2017
01/31/2018
01/31/2018
02/28/2018
02/28/2018

My list has 2,000 lines and I don't want to copy , create a blank cell and paste the value.


Thanks in advance for any help
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Couldn't you just select the entire range all at once, and copy and paste it below the original range, then just sort your range to get it in that order?
 
Upvote 0
Joe4. Thanks. I will try the idea but I still a dynamic formula since I have just noticed that the pairs may vary to 2 or 4 pairs
 
Upvote 0
What actually determines/controls how many pairs there should be?
 
Upvote 0
by The expenses so if it has one expense it will have one line, if it has 2 expenses it will be 2 lines and so on....
 
Upvote 0
by The expenses so if it has one expense it will have one line, if it has 2 expenses it will be 2 lines and so on....
So, what does that actually look like (sorry, I having a hard time putting what you are saying with your original pictures)?
It may help if you can post a small example of the data you are starting with an your expected results, and we can clearly how to determine how may pairs are needed.
There is a tool that allows you to post screen images found here: XL2BB - Excel Range to BBCode
 
Upvote 0
I try to help ...
You got this
varios 09jul2020.xlsm
AB
1
2Inv#112/31/2017
3Inv#201/31/2018
4Inv#302/28/2018
Source


Always repeat the line twice, then the result:
varios 09jul2020.xlsm
AB
1
2Inv#112/31/2017
3Inv#112/31/2017
4Inv#201/31/2018
5Inv#201/31/2018
6Inv#302/28/2018
7Inv#302/28/2018
Destination


Do you want that with a formula or can it be with a macro?
 
Upvote 0
DanteAmor. Thanks.. This is what I need? How can I extract the formulas? Again.. Many thanks
 
Upvote 0
JOE4. Here at work I cannot download anything and I need permission to download any app. That's why I put the example in text box so you have the idea of what i was trying to achive
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,931
Members
449,134
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top