concatenate if meets certain criteria

darkbluecat

New Member
Joined
Jan 7, 2021
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi, so I've got this:

=CONCATENATE("Data available from ",TEXT(MIN(Raw!U:U),"mmm yy")," to ",TEXT(MAX(Raw!U:U),"mmm yy"))

which returns the max date and min date from all the lines of data in another sheet, output is: Data available from Dec 18 to Nov 20

I've checked and this works,

Now in another column on that sheet, I have different names, and want to run this but only if it has that name too.

I've got a list of these names on the sheet i'm currently working on, and want to copy it for each of the six names, so that it only concatenates if it contains that name.

I've tried all sorts and can't share the file to show you because work.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
What column are the names in on the Raw sheet?
 
Upvote 0
Ok, how about
Excel Formula:
=CONCATENATE("Data available from ",TEXT(MINIFS(Raw!U:U,Raw!B:B,B6),"mmm yy")," to ",TEXT(MAXIFS(Raw!U:U,Raw!B:B,B6),"mmm yy"))
 
Upvote 0
Solution
Yes!! It works, thank you so much!!

Can you explain how it works?
There's a lot of excel functions I don't understand and I'm trying to learn stuff and I won't know what functions to use when I know what I want to do in my head lol

I've started attending coding sessions at my uni lol to understand stuff, I like how logical it all is I just wish I could understand AND remember it all
 
Upvote 0
I didn't know minifs and maxifs were a thing!! No wonder I couldn't do it
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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