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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,216,150
Messages
6,129,154
Members
449,488
Latest member
qh017

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