Are sumifs relevant to what I want to do?

mikeolson

New Member
Joined
Oct 22, 2018
Messages
7
I have two columns with no data, but when there is data (a job number) in any cell in these two columns that is a duplicate, I want the quantity (cell in this row) to multiply by the price (another cell in the same row), and return to me the total, and the job number at the end of the row. I know that this is probably really simple, but I'm not having any luck with this. The same job number could be entered into any of the first two columns, so I want a total for each jobs costs.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
sumifs could be, but i'd go with countifs. count the occurances of the job number in both columns then do your calculation.

something like =IF(COUNTIF(A:A,B2)+COUNTIF(B:B,B2)>1,yourcalculation,"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,681
Messages
6,126,194
Members
449,298
Latest member
Jest

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