CONCAT and IF

bazzinga

New Member
Joined
Dec 5, 2023
Messages
12
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I am trying to use CONCAT to give me all the information on a table as a sentence. So far my formula can aggregate Table A + Table B. Is there a way to do A+B A+B (i.e. 10 Dewberry@, 15 Early@,...) with the IF formula?

My current formula:

=CONCAT(IF(A3:A124>0,A3:A12,""),IF(A3:A12>0," "&B3:B12,""))

1701790957390.png
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi & welcome to MrExcel.
How about
Excel Formula:
=TEXTJOIN(" ",,FILTER(A3:B12,A3:A12<>0))
 
Upvote 1
Solution
Hi and welcome

Try

Excel Formula:
=TEXTJOIN(", ",,BYROW(FILTER(A3:B7,A3:A7>0),LAMBDA(br,TEXTJOIN(" ",,br))))
 
Upvote 0
How about this (adds a space between values)
Excel Formula:
=CONCAT(IF(A3:A124>0,A3:B12& " ",""))

If you don't want the space:
Excel Formula:
=CONCAT(IF(A3:A124>0,A3:B12,""))
 
Upvote 0

Forum statistics

Threads
1,215,736
Messages
6,126,552
Members
449,318
Latest member
Son Raphon

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