check daily production using formula & cond. format


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

New Reply
Thread Tools Rate Thread Display Modes
  #1  
Unread 18th February 2012, 11:00
mwvirk's Avatar
mwvirk mwvirk is offline
Frequent User
MS Office Version: MS Office 2007
MS Office Skill Level: New to MS Office
 
Join Date: Mar 2011
Location: Safat, Kuwait
Posts: 160
Posts Per Day: 0.12
My Top Tip Count: 0
Thanks to others: 14
Thanked 0 Times in 0 Posts
Reputation: 10 (5) mwvirk is on a distinguished road
Kuwait
Default check daily production using formula & cond. format
     Excel: General   


------ Register to get rid of these "In Post" ads! ------

Category: Excel: General   

based on my data entry, i'm creating a report to check what was my daily production and if there is no production then mark the day as red. here is the formula:
=IF(SUMIF(B9:B73,AZ9,E9:E73)<>0,SUMIF(B9:B73,AZ9,E9:E73),"")

where:
B9:B73 is product manufacturing date
formula is checking AZ9 (date here) then checking E9:E73 for number of item manufactured - based on this i'm getting total items for that date in cell BB9

here i'm also using conditional format to mark cell red if there is no production on that date. Conditional formula is: =LEN(BB9)=0 then mark red

i have 2 issues here:
1 - i need to get 0 in BB9 if there is no production
2 - i have set a daily target to 200 and checking the difference in next cell BC9 that what was difference on this date. Using this formula on BC9: =IF(BB9="","",BB9-BH5) but i'm getting the cell blank if it is receiving 0 from BB9 but i need to see -200 here

I think if somehow we can get 0 in BB9 (as mentioned in issue 1) then BC9 (issue 2) will resolved automatically.

need help please. thanks.

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #2  
Unread 18th February 2012, 12:41
RoyUK's Avatar
RoyUK RoyUK is offline
Administrator
Solution Centre Professional
MS Office Version: MS Office 2003, 2007, 2010
MS Office Skill Level: Proficient with MS Office
 
Join Date: Nov 2008
Location: Derbyshire, UK
Posts: 2,686
Posts Per Day: 1.20
My Top Tip Count: 4
Thanks to others: 2
Thanked 194 Times in 192 Posts
Reputation: 3305 (66) RoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond repute
4 Top Tips
England
Default Re: check daily production using formula & cond. format

------ Register to get rid of these "In Post" ads! ------


Why not add a File?
Providing a file for your particular application will not only get you your answer quicker but will better illustrate your problem, usually when we can see your data (it can be dummy data but must be of the same type) and your structure it is far easier for us to give you a tailored, workable answer to your query
__________________
Hope that helps, RoyUK
For tips & examples visit free excel help
DatabaseForm
About me

  #3  
Unread 18th February 2012, 18:25
Pete_UK's Avatar
Pete_UK Pete_UK is offline
Solution Centre Professional
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: Proficient with Excel
 
Join Date: Mar 2009
Location: Warrington, England
Age: 62
Posts: 625
Posts Per Day: 0.30
My Top Tip Count: 0
Thanks to others: 8
Thanked 132 Times in 131 Posts
Reputation: 2587 (37) Pete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond repute
Great_Britain
Default Re: check daily production using formula & cond. format

------ Register to get rid of these "In Post" ads! ------


If you change your formula in BB9 to this:

My Formula:
=SUMIF(B9:B73,AZ9,E9:E73)


then you will get 0 if there is no production on the day. If this formula is to be copied down for other dates in column AZ, then you might want to amend it to this:

My Formula:
=SUMIF(B$9:B$73,AZ9,E$9:E$73)


That should resolve your second issue, i.e if BB9 results in 0 and BH5 contains 200, then the formula in BC9 should give you -200 as the result, although you could just change the formula in BC9 to this:

My Formula:
=BB9-$BH$5


and again this could be copied down.

Hope this helps.

Pete

The Code Cage Advertisment
Advertisement
  #4  
Unread 18th February 2012, 20:05
mwvirk's Avatar
mwvirk mwvirk is offline
Frequent User
MS Office Version: MS Office 2007
MS Office Skill Level: New to MS Office
 
Join Date: Mar 2011
Location: Safat, Kuwait
Posts: 160
Posts Per Day: 0.12
My Top Tip Count: 0
Thanks to others: 14
Thanked 0 Times in 0 Posts
Reputation: 10 (5) mwvirk is on a distinguished road
Kuwait
Default Re: check daily production using formula & cond. format

------ Register to get rid of these "In Post" ads! ------


thanks Pete_UK. but you missed the conditional format step

------------------------------ posted before receiving a reply after 10 minutes of original post ------------------------------

thanks for your help. problem is solved by doing:

BB9 =IF(SUMIF(B9:B73,AZ9,E9:E73)<>0,SUMIF(B9:B73,AZ9,E9:E73),0)
BC9 =BB9-BH5

Conditional formatting
BB9 Cell Value equal to =0


Last edited by mwvirk; 18th February 2012 at 20:05.
  #5  
Unread 18th February 2012, 20:37
Pete_UK's Avatar
Pete_UK Pete_UK is offline
Solution Centre Professional
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: Proficient with Excel
 
Join Date: Mar 2009
Location: Warrington, England
Age: 62
Posts: 625
Posts Per Day: 0.30
My Top Tip Count: 0
Thanks to others: 8
Thanked 132 Times in 131 Posts
Reputation: 2587 (37) Pete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond repute
Great_Britain
Default Re: check daily production using formula & cond. format

------ Register to get rid of these "In Post" ads! ------


Quote:
Originally Posted by mwvirk View Post

BB9 =IF(SUMIF(B9:B73,AZ9,E9:E73)<>0,SUMIF(B9:B73,AZ9,E9:E73),0)

You really do not need to have that IF statement in BB9. What's the point in saying "IF a calculation is not equal to zero then do the calculation again, otherwise return zero" ??

The same result can be achieved with:

=SUMIF(B9:B73,AZ9,E9:E73)

Pete

  #6  
Unread 18th February 2012, 20:44
mwvirk's Avatar
mwvirk mwvirk is offline
Frequent User
MS Office Version: MS Office 2007
MS Office Skill Level: New to MS Office
 
Join Date: Mar 2011
Location: Safat, Kuwait
Posts: 160
Posts Per Day: 0.12
My Top Tip Count: 0
Thanks to others: 14
Thanked 0 Times in 0 Posts
Reputation: 10 (5) mwvirk is on a distinguished road
Kuwait
Default Re: check daily production using formula & cond. format

------ Register to get rid of these "In Post" ads! ------


right... i will change it... thnx

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #7  
Unread 18th February 2012, 20:56
Pete_UK's Avatar
Pete_UK Pete_UK is offline
Solution Centre Professional
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: Proficient with Excel
 
Join Date: Mar 2009
Location: Warrington, England
Age: 62
Posts: 625
Posts Per Day: 0.30
My Top Tip Count: 0
Thanks to others: 8
Thanked 132 Times in 131 Posts
Reputation: 2587 (37) Pete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond repute
Great_Britain
Default Re: check daily production using formula & cond. format

------ Register to get rid of these "In Post" ads! ------


Okay, and if you now think your problem has been Solved, perhaps you can mark it as such - here's a couple of standard messages:

Glad we could be of help!
Help

Help

If your query has been solved please take a moment to let us and eveyone else know by either going to, Thread Tools > "Mark This Thread As Solved", shown by this iconMark Solved


or clicking the same icon and title in any of your posts within this thread :)




How To Say Thanks!
How to say thanks!

Saying Thanks

If you have found my tip helpful then please click on the button (like the one on the left) to the bottom right of my post to register your appreciation. If you also found a particular post helpful click the green thumbs up button on that post too so others can quickly find a helpful post!





Pete

The Following User Says Thank You to Pete_UK For This Useful Post:
mwvirk (18th February 2012)
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

New Reply
The Code Cage at Facebookhe Code Cage at Twitter


Tags
check, cond, daily, format, formula, production

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

All times are GMT +1. The time now is 00:13.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University