COUNTA, Concatenate and SUMIF

El Gallo

New Member
Joined
Sep 12, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'd like to concatenate values from two columns if they match the criteria from another sheet. Here's what I've come up with so far but I just can't get it give me the correct values:

=IF(COUNTA(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$C$2:$C$250)=1),CONCATENATE(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$B$2:$B$250)&" "&(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$C$2:$C$250))),(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$B$2:$B$250)))

The data I want is a score and if it was late. If it wasn't late, all I want is the score.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
would you care to post a small sample of the data and desired result to help the helpers?
 
Upvote 0
This part of you formula makes no sense
COUNTA(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$C$2:$C$250)=1)

The part in blue will return either true or false & counta will then count that as 1 regardless of the sumif.
 
Upvote 0
Cross posted COUNTA, SUMIF and Concatenate - OzGrid Free Excel/VBA Help Forum

While we do allow 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 elsewhere.
 
Upvote 0
Judging by the file on Ozgrid, is this what you want.
Excel Formula:
=SUBSTITUTE(CONCATENATE(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$B$2:$B$250)&" "&(COUNTIFS('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$C$2:$C$250,"x")))," 0","")
 
Upvote 0
Judging by the file on Ozgrid, is this what you want.
Excel Formula:
=SUBSTITUTE(CONCATENATE(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$B$2:$B$250)&" "&(COUNTIFS('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$C$2:$C$250,"x")))," 0","")

Close. If Jimmy Carter turned his work in late, I want to put an "x" in the C column (titled "Late") of the "Work Submitted" sheet and have that "x" show up next to his point totals on the "To Be Entered" sheet. If Carter turned in his work on time, all I want is the point total to show up next to his name on the "To Be Entered" sheet.

Something like this...

If late:
James Carter10 x

If turned in on time:
James Carter10
 
Upvote 0
Cross posted COUNTA, SUMIF and Concatenate - OzGrid Free Excel/VBA Help Forum

While we do allow 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 elsewhere.

Will do. That makes sense and it won't happen again. Thanks.
 
Upvote 0
What should happen if he appears 3 times & only handed in the work late once?
 
Upvote 0
What should happen if he appears 3 times & only handed in the work late once?
He won't appear three time because this will only be used for one assignment. The names come from a master list and they're to be matched up with a list of students who did turn in work (on time or late).
 
Upvote 0
Ok, how about
Excel Formula:
=CONCATENATE(SUMIF('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$B$2:$B$250)&IF(COUNTIFS('Work submitted'!$A$2:$A$250,A2,'Work submitted'!$C$2:$C$250,"x")>0, " x",""))
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

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