Calculate sum of certain cells ignoring #n/a

NicoleV

New Member
Joined
May 17, 2017
Messages
3
I have 2 sheets.
The first sheet has the data and the second is basically a summary sheet.
Here's what I need to do:

SHEET 1: DATA SHEET

Model CodeModel DescriptionEBQ CodeEBQ DescriptionQTYExportTotal
LIGHT FITTINGS:
PS0050Light - T5 Recessed Fixture 2x28W1200 x 600 LBR -RCO(2*54W) Recessed - white12323
PS0050Light - T5 Recessed Fixture 2x28WT5 54W Flourescent lamps 840 (including 4 spare)22346
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000183Shopfront window display (21W LED track spots)3618
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000184Shopfront window display - track (3m track)166
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000091Light downlight holder - black3618
PS0057Light - Perimeter wall washerT5 54W Flourescent lamps 840 (including 4 spare)2918
PS0057Light - Perimeter wall washerPerimeter wall washer -Raw 254(1200*200) - white199
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000183Shopfront window display (21W LED track spots)4#N/A#N/A
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000184Shopfront window display - track (3m track)1#N/A#N/A
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000091Light downlight holder - black4#N/A#N/A
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000183Shopfront window display (21W LED track spots)515
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000184Shopfront window display - track (3m track)111
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000091Light downlight holder - black515

<tbody>
</tbody>




SHEET 2: SUMMARY SHEET
Item CodeItem DescriptionPriceQTYTotal
LIGHT FITTINGS:
EBQ000091Light downlight holder - white28.860.00
EBQ000091Light downlight holder - black28.860.00
EBQ000101T5 Lighting bracket for wall washer16.240.00
EBQ000183Shopfront window display (21W LED track spots)864.920.00
EBQ000184Shopfront window display - track (3m track)345.980.00

<tbody>
</tbody>



So what I want to do is to create a formula in (SHEET 2) QTY column that will tell me the total amount of "EBQ000091 Light downlight holder - black" I need to order in total (Total column in SHEET 1)

=SUMIF(range,"<>N/A") doesn't work because its not looking for the total of one EBQ code
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Welcome to the forum.

It sounds like you just want SUMIFS rather than SUMIF, but I can't see where the #N/A comes into it?

Edit: Never mind, I couldn't see the full table on my Mac for some reason.
 
Last edited:
Upvote 0
=SUMIF(range,"<>N/A") doesn't work because its not looking for the total of one EBQ code

That should be =SUMIF(range, "<>#N/A").

But perhaps you want =SUMIFS(range1, range2, "EBQ000091", range3, "<>#N/A")
 
Upvote 0
I'm struggling to add screenshots of my sheets which would help to explain better.
Will respond as soon as I figure out how to do this image adding thing
 
Upvote 0
A
B
C
D
E
F
G
1
HEET 1: DATA SHEET
2
Model CodeModel DescriptionEBQ CodeEBQ DescriptionQTYExportTotal
3
LIGHT FITTINGS:
4
PS0050Light - T5 Recessed Fixture 2x28W1200 x 600 LBR -RCO(2*54W) Recessed - white
1​
23​
23​
5
PS0050Light - T5 Recessed Fixture 2x28WT5 54W Flourescent lamps 840 (including 4 spare)
2​
23​
46​
6
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000183Shopfront window display (21W LED track spots)
3​
6​
18​
7
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000184Shopfront window display - track (3m track)
1​
6​
6​
8
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000091Light downlight holder - black
3
6
18
9
PS0057Light - Perimeter wall washerT5 54W Flourescent lamps 840 (including 4 spare)
2​
9​
18​
10
PS0057Light - Perimeter wall washerPerimeter wall washer -Raw 254(1200*200) - white
1​
9​
9​
11
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000183Shopfront window display (21W LED track spots)
4​
#N/A​
#N/A​
12
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000184Shopfront window display - track (3m track)
1​
#N/A​
#N/A​
13
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000091Light downlight holder - black
4
#N/A
#N/A
14
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000183Shopfront window display (21W LED track spots)
5​
1​
5​
15
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000184Shopfront window display - track (3m track)
1​
1​
1​
16
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000091Light downlight holder - black
5
1
5

<tbody>
</tbody>


A
B
C
D
E
1
SHEET 2: SUMMARY SHEET
2
Item CodeItem DescriptionPriceQTYTotal
3
LIGHT FITTINGS:
4
EBQ000091Light downlight holder - white
28.86​
0​
0​
5
EBQ000091Light downlight holder - black
28.86​
12​
23​
6
EBQ000101T5 Lighting bracket for wall washer
16.24​
0​
0​
7
EBQ000183Shopfront window display (21W LED track spots)
864.92​
12​
23​
8
EBQ000184Shopfront window display - track (3m track)
345.98​
3​
7​

<tbody>
</tbody>


SHEET2

D4=SUMIFS(Sheet1!$E$4:$E$16,Sheet1!$C$4:$C$16,Sheet2!$A4,Sheet1!$D$4:$D$16,Sheet2!$B4) copy down

E4=SUMIFS(Sheet1!$G$4:$G$16,Sheet1!$G$4:$G$16,"<>#N/A",Sheet1!$C$4:$C$16,Sheet2!$A4,Sheet1!$D$4:$D$16,Sheet2!$B4) copy down
 
Upvote 0
Thanks for your help guys.
I figured it out after a brain-wrecking 2 days.
Here's what I did:



A
B
C
D
E
F
G
1
HEET 1: DATA SHEET
2
Model CodeModel DescriptionEBQ CodeEBQ DescriptionQTYExportTotal
3
LIGHT FITTINGS:
4
PS0050Light - T5 Recessed Fixture 2x28W1200 x 600 LBR -RCO(2*54W) Recessed - white
1​
23​
23​
5
PS0050Light - T5 Recessed Fixture 2x28WT5 54W Flourescent lamps 840 (including 4 spare)
2​
23​
46​
6
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000183Shopfront window display (21W LED track spots)
3​
6​
18​
7
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000184Shopfront window display - track (3m track)
1​
6​
6​
8
PS0056Light - Shopfront 3m Track with 3 SpotlightsEBQ000091Light downlight holder - black
3
6
18
9
PS0057Light - Perimeter wall washerT5 54W Flourescent lamps 840 (including 4 spare)
2​
9​
18​
10
PS0057Light - Perimeter wall washerPerimeter wall washer -Raw 254(1200*200) - white
1​
9​
9​
11
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000183Shopfront window display (21W LED track spots)
4​
#N/A​
0​
12
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000184Shopfront window display - track (3m track)
1​
#N/A​
0​
13
PS0058Light - Shopfront 3m Track with 4 SpotlightsEBQ000091Light downlight holder - black
4
#N/A
0
14
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000183Shopfront window display (21W LED track spots)
5​
1​
5​
15
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000184Shopfront window display - track (3m track)
1​
1​
1​
16
PS0059Light - Shopfront 3m Track with 5 SpotlightsEBQ000091Light downlight holder - black
5
1
5

<tbody>
</tbody>

I CHANGED THE FORMULA IN THE TOTAL COLUMN TO ELIMINATE ALL N/A RESULTS:
=IFERROR(F13*G13,0)


A
B
C
D
E
1
SHEET 2: SUMMARY SHEET
2
Item CodeItem DescriptionPriceQTYTotal
3
LIGHT FITTINGS:
4
EBQ000091Light downlight holder - white
28.86​
0​
0​
5
EBQ000091Light downlight holder - black
28.86​
12​
23​
6
EBQ000101T5 Lighting bracket for wall washer
16.24​
0​
0​
7
EBQ000183Shopfront window display (21W LED track spots)
864.92​
12​
23​
8
EBQ000184Shopfront window display - track (3m track)
345.98​
3​
7​

<tbody>
</tbody>


I THEN USED THE SUMIF FUNCTION IN D1 TO GIVE ME THE CORRECT INFORMATION THAT I WAS LOOKING FOR.

THANK YOU ONCE AGAIN FOR YOUR HELP GUYS
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,007
Members
449,480
Latest member
yesitisasport

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