addikng cells only if another cell has an N in it

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
985
I am trying to add up only certains cells when a cells has an "N" in them the belolw table i want to add 2 50 +92+3 42 so total in a cell would be 6 82
the 2nd column is hours and 3rd column is minutes in decimal form

thanks in advance for any help

014250N
021167
05992N
7421
542342N
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
=SUMIF( D2:D100,"N",C2:C100)

assuming columns are A,B,C & D

Book1
ABCDEF
114250N
221167184
35992N
47421
5542342N
Sheet1
Cell Formulas
RangeFormula
F2F2=SUMIF(D1:D5,"N",C1:C5)
 
Upvote 0
The result is 5 hours and 184 minutes.
If you convert 184 minutes to hours, the result is 3 hours and 4 minutes.
The final result would be 8 hours and 4 minutes:

Dante Amor
ABCDE
1HMSum
214250N8 hours 4 minutes
321167
45992N
57421
6542342N
Hoja1
Cell Formulas
RangeFormula
E2E2=SUMIF(D2:D6,"N",B2:B6)+INT(SUMIF(D2:D6,"N",C2:C6)/60) & " hours " & MOD(SUMIF(D2:D6,"N",C2:C6),60) & " minutes"


I don't understand how in your result you get 6 hours and 82 minutes.
Can you explain it?

----- --
I hope to hear from you soon
Respectfully
Dante Amor
----- --
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

My take on this
Fluff.xlsm
ABCDEF
1
214250N6.84
321167
45992N
57421
6542342N
7
Data
Cell Formulas
RangeFormula
F2F2=SUMIFS(B:B,D:D,"N")+SUMIFS(C:C,D:D,"n")/100
 
Upvote 0

Forum statistics

Threads
1,221,558
Messages
6,160,486
Members
451,651
Latest member
Penapensil

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