conditions in if statements

R

Roy Gudgeon

Hi

=IFERROR(IF(G4/F4>1,F4/G4,G4/F4),1)
I'm using the above current formula to calculate some stock accuracy figures,
where f = computer stock & g = qty physically counted. The "iferror" deals
with 0/0 errors and reports 100%

My only issue comes when I have 0 computer stock but find some actual stock.
Applying this formula gives a 100% result when I actually need a 0% result.

I have tried using if (f4 = 0 & g4>1), ........to set a condition but this
only uses the 2nd statement as the true test and returns 100% when used in
the formula, any help greatly appreciated

thanks
Roy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top