Using the IF

Novman

New Member
Joined
Feb 19, 2023
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Sorry I don't have a copy to post just now but looking for help for the following if possible if not I'll try get a post up with table,
I have a few sheets taking data to my last sheet, IE
(A4) Spoons needed (B4) 6
(A5) Plates needed (B5) 10
(A6) Cups needed (B6) 0
And so on, what I am doing is using the =sheet1 A4 to show on sheet4 what is in that cell and same with B4 returning spoons needed one cell and other returning 6.
What I want to do is add, if their is no spoons need as figure is 0 then in do not show spoons in my sheet4,
If theses does not make sense please say and I'll try as soon as to get a post of what I'm looking for to make it easier,
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
how about
=IF(COUNTIF(Sheet1!$A$4:$A$100,0)>0,"",Sheet1!A4)

so if it finds a zero in the list then the all the cells on sheet4 will be blank
sheet1 with no zeros
Book1
AB
2
3
46
510
61
Sheet1


sheet 4 result
Book1
AB
1
2
3
46
510
61
Sheet4
Cell Formulas
RangeFormula
B4:B6B4=IF(COUNTIF(Sheet1!$A$4:$A$100,0)>0,"",Sheet1!A4)



Sheet1 with a zero
Book1
AB
1
2
3
46
510
60
Sheet1


sheet4 result
Book1
AB
1
2
3
4 
5 
6 
Sheet4
Cell Formulas
RangeFormula
B4:B6B4=IF(COUNTIF(Sheet1!$A$4:$A$100,0)>0,"",Sheet1!A4)
 
Upvote 0
Thank you for your reply, I have attached an example, what I was looking for was if in the need ordered coulm is the number is 0 or less the remover the text in that hole row,
 

Attachments

  • 1000014396.jpg
    1000014396.jpg
    224.6 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,088
Members
453,021
Latest member
Justyna P

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