Index Match, Left Question

Click22

New Member
Joined
Jan 29, 2020
Messages
15
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Guys,

I am looking to do a simple index match formula but I am getting stuck on how to get the qty come through.

I currently have this:

=INDEX('Sheet 2'!N:N,MATCH(C27,'Sheet 2'!C:C,0))

But I require it to ignore the (195) on the end.

Sheet 1:
Cell C27 - 24/05/21
Cell C32 - Formula in here

Sheet 2:
Column C:C - 24/05/21 (195)
Column N:N - 140

I have tried nesting a LEFT formula within it, but not with any success.

Any help would be great.

Thank you
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Is the date in C27 a real date or text?
 
Upvote 0
Hi Fluff,

C27 is a formulated date using the workday function.
 
Upvote 0
In that case try
Excel Formula:
=INDEX(Sheet2!N:N,MATCH(text(C27,"dd/mm/yy")&"*",Sheet2!C:C,0))
 
Upvote 0
In that case what exactly is in col C on sheet2?
 
Upvote 0
Here is a screenshot if that helps. Col C is week commencing dates.

1621879713992.png
 
Upvote 0
Those dates are not consistent some have a 2 digit year & one has a 4 digit year. They will need to be one or the other.
Also you seem to have merged cells which may cause a problem.
 
Upvote 0
Thanks Fluff, I hadn't noticed that.
All dates now put to dd/mm/yy format and all is working as your formula above.

Thank you very much
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,956
Members
449,200
Latest member
indiansth

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