How to show the column that data first appear

tuanvu

New Member
Joined
Nov 3, 2018
Messages
2
Hi all

I have an Excel file as attached which show months in which we have order from customers.

Could you please help me the formula to show the month in which the customer first bought our product?

I have attached both the Excel file and an example picture.

Thank

File:
https://files.fm/u/k4k9zk6t

596601d1541244620-how-to-show-the-column-that-data-first-appear-sample.jpg
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi & welcome to MrExcel.
How about


Excel 2013/2016
BCDEFGHIJKLMNOPQRSTU
2Customer IDNew customer in monthJan-17Feb-17Mar-17Apr-17May-17Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17Jan-18Feb-18Mar-18Apr-18May-18Jun-18
31Nov-173211141
42Jan-17111121444732011106
53Mar-171211114142
64Apr-17262113
75Aug-171421
86Mar-1731121211368691
97Jan-1734202122545177412
Sheet1
Cell Formulas
RangeFormula
C3{=INDEX(D$2:U$2,,MATCH(TRUE,ISNUMBER(D3:U3),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C3[/TH]
[TD="align: left"]{=INDEX(D$2:U$2,,MATCH(TRUE,ISNUMBER(D3:U3),0))}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
Interestingly, your formula works even if you don't skip over the row argument...

=INDEX(D$2:U$2,MATCH(TRUE,ISNUMBER(D3:U3),0))

Here is an alternate (still array-entered**) formula that will also work...

=INDEX(D$2:U$2,MATCH(TRUE,D3:U3<>"",0))

**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself
 
Upvote 0
Cross posted https://www.excelforum.com/excel-ge...olumn-that-data-first-appear.html#post5003994

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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