Help with CountIF, Offset, Sequence, and rows function

shellwig

New Member
Joined
Dec 22, 2015
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Thank you in advance for any help provided. I'm trying to create a helper column for my look up that provides a new sequence based on the cells.
See below for my formula and what I'm trying to accomplish. Based on many searches this was what I could find that could perform this function.
If there is a better way then I'm open to your suggestion.

Best Regards - Shamus
(a)(b)want to returnformula returnsformula
547
1101​
547-1101-1547-1101-1A2:A10&"-"&B2:B10&"-"&COUNTIF(OFFSET(A2:A10,0,0,SEQUENCE(ROWS(A2:A10))),A2:A10)
553
1101​
553-1101-1553-1101-1
556
1101​
556-1101-1556-1101-1
547
1201​
547-1201-1547-1201-2
553
1201​
553-1201-1553-1201-2
556
1201​
556-1201-1556-1201-2
547
1250​
547-1250-1547-1250-3
553
1250​
553-1250-1553-1250-3
556
1250​
556-1250-1556-1250-3
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=TEXTJOIN("-",,A2:B2,COUNTIFS(A$2:A2,A2,B$2:B2,B2))
 
Upvote 0
Solution
Thank you so much as it worked. I do not understand how it worked yet but I will soon enough. Again thank you so much for your help and I've updated my account to show which version I'm using.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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