need to add heading if data is less then 30

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
1,015
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

Below is the data B-D ,E-G,H-I, K-M, N-P will have in the same set with 3 columns and if any between 3 columns have less than 30 score
I need to add a note like Colunm B9..

Currently, B5 , F5, M5 have data less than so I have added those names Fro Row 6 to B9


book1
BCDEFGHIJKLMNOP
522270270571226081442442147780226117117
6DMA: AtlantaDMA: Dallas - Ft. WorthDMA: Los AngelesDMA: New York CityDMA: Washington, DC (Hagrstwn)
7
8
9DMA: Atlanta, DMA: Dallas - Ft. Worth, DMA: New York City
Sheet1
 
In your example, you must also include N5
As was already pointed out. ;)
What about N5 (26)?


@sksanjeev786
Given Dante's non-volatile formula suggestion above, another macro approach would be
VBA Code:
Sub Less30_v3()
  Range("B9").Value = Evaluate("TEXTJOIN("", "",1,BYCOL(B6:P6,LAMBDA(a,IF(MIN(TAKE(INDEX(a,1):P5,,3))<30,a,""""))))")
End Sub
 
Upvote 0
Thank you so much team for your support and help.... :) All Macros and Formula's are working superb...!!
 
Upvote 0

Forum statistics

Threads
1,226,771
Messages
6,192,926
Members
453,767
Latest member
922aloose

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