If statement for a total of a different column

Cole Parker

New Member
Joined
Jun 2, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi,
I am trying to build a template and use excel to pull totals over for me so i dont have to manually do this everytime..
I want to check column C for a certain text value on another sheet and if it containts the certain text, i want it to pull the dollar figure from the column next to it. (D)
then sum the entire amount.


Thank you!
I cant make it work in my head
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hii, Welcome to Mr.Excel

Do you want something like this?

Sheet1

Book1
CD
1DescriptionAmount
2Text11
3Text11
4Text11
5Text22
6Text33
7Text33
8Text33
9Text22
Sheet1



Sheet2

Book1
ABC
1DescriptionAmount
2Text13
3
4
5
Sheet2
Cell Formulas
RangeFormula
B2B2=SUMIF(Sheet1!C:C,Sheet2!A2,Sheet1!D:D)
 
Upvote 0
Hii, Welcome to Mr.Excel

Do you want something like this?

Sheet1

Book1
CD
1DescriptionAmount
2Text11
3Text11
4Text11
5Text22
6Text33
7Text33
8Text33
9Text22
Sheet1



Sheet2

Book1
ABC
1DescriptionAmount
2Text13
3
4
5
Sheet2
Cell Formulas
RangeFormula
B2B2=SUMIF(Sheet1!C:C,Sheet2!A2,Sheet1!D:D)
This is what i ended up with

=SUMIF('30 Days'!C:C,"1A1-CONSTRUCTION-RESIDENTIAL PROPERTY",'30 Days'!D:D)

this took the text value from the '30 days' sheet and looked through column c for "1A1-CONSTRUCTION-RESIDENTIAL PROPERTY", then should take the dollar amounts from the D column.

Am i correct in that?

Thank you for the quick reply.
 
Upvote 0
This is what i ended up with

=SUMIF('30 Days'!C:C,"1A1-CONSTRUCTION-RESIDENTIAL PROPERTY",'30 Days'!D:D)

this took the text value from the '30 days' sheet and looked through column c for "1A1-CONSTRUCTION-RESIDENTIAL PROPERTY", then should take the dollar amounts from the D column.

Am i correct in that?

Thank you for the quick reply.
Yes,

You're correct.
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,944
Members
449,095
Latest member
nmaske

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