# SUMIF problem

1. ## SUMIF problem

So i have a balance sheet which has columns for each month of the year and this sheet collects data from other sheets to display summarized data.

example- on my sales sheet i input each individual sale into a row. i use the date format 01-AUG-13 however on the balance sheet the column for August would just say AUG. now when i try to run a SUMIF function so that the sales column in august on the balance sheet collects and adds all sales in august on the sales sheet it does not return a value. I know that the formula is correct because if i change the date format on the sales page to just AUG (and not 01-AUG-13) it returns the correct value for the test data I've supplied. I understand because the criteria isn't an exact match it doesn't return the data but is there a way to get round this without the use of let say helper columns and the MID function?

Any help much appreciated.

Oh the formula I'm currently using is =SUMIF(Sales_date_range,A3,Sales_VAT_Range)

2. ## Re: SUMIF problem

On your summary sheet your should enter a date in A3 which is the first of the month (i.e. 1/08/2013), and then apply a custom format to that cell of mmm so that it only shows the abbreviated month. Then you can change your formula to this:

=SUMIFS(Sales_VAT_Range,Sales_date_range,">="&A3,Sales_date_Range,"<="&DATE(YEAR(A3),MONTH(A3)+1,0))

Hope this helps.

Pete

3. ## Re: SUMIF problem

SUMIFSforum.xlsx

Im not sure that will work and its likely its because i explained it poorly. example WB attached.
So on the vat sheet i want any and all vat amounts added up for the particular month.

Hope this helps.

4. ## Re: SUMIF problem

see attachment

5. ## Re: SUMIF problem

Absolutely brilliant!! Cant thank you enough!!!

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

## X vBulletin 4.1.8 Debug Information

• Page Generation 0.06370 seconds
• Memory Usage 8,991KB
• Queries Executed 16 (?)
Template Usage (34):
• (1)footer
• (1)forumrules
• (1)gobutton
• (5)memberaction_dropdown
• (1)navbar
• (4)navbar_noticebit
• (6)option
• (1)postbit_attachment
• (5)postbit_legacy
• (5)postbit_onlinestatus
• (5)postbit_wrapper
• (1)spacer_close
• (1)spacer_open
• (1)tagbit_wrapper

Phrase Groups Available (6):
• global
• inlinemod
• postbit
• posting
• reputationlevel
Included Files (39):
• ./vbseo.php
• ./env.php
• ./vbseo/includes/functions_vbseo.php
• ./vbseo/includes/functions_vbseo_pre.php
• ./vbseo/includes/functions_vbseo_url.php
• ./vbseo/includes/functions_vbseo_createurl.php
• ./vbseo/includes/functions_vbseo_db.php
• ./vbseo/includes/functions_vbseo_vb.php
• ./vbseo/includes/functions_vbseo_seo.php
• ./vbseo/includes/functions_vbseo_misc.php
• ./vbseo/includes/functions_vbseo_crr.php
• ./vbseo/includes/functions_vbseo_cache.php
• ./vbseo/includes/functions_vbseo_hook.php
• ./vbseo/includes/functions_vbseo_startup.php
• ./includes/config.php
• ./global.php
• ./includes/class_bootstrap.php
• ./includes/init.php
• ./includes/class_core.php
• ./includes/functions.php
• ./includes/class_friendly_url.php
• ./includes/class_hook.php
• ./includes/functions_cforum.php
• ./includes/functions_bigthree.php
• ./includes/class_postbit.php
• ./includes/class_bbcode.php
• ./includes/functions_reputation.php
• ./includes/class_bootstrap_framework.php
• ./vb/vb.php
• ./vb/phrase.php
• ./packages/vbattach/attach.php
• ./vb/types.php
• ./vb/cache.php
• ./vb/cache/db.php
• ./vb/cache/observer/db.php
• ./vb/cache/observer.php
• ./includes/functions_notice.php

Hooks Called (49):
• init_startup
• friendlyurl_resolve_class
• database_pre_fetch_array
• database_post_fetch_array
• global_bootstrap_init_start
• global_bootstrap_init_complete
• cache_permissions
• fetch_foruminfo
• global_state_check
• global_bootstrap_complete
• global_start
• style_fetch
• global_setup_complete
• friendlyurl_redirect_canonical
• bbcode_fetch_tags
• bbcode_create
• postbit_factory
• postbit_display_start
• cache_templates
• template_register_var
• parse_templates
• notices_check_start
• notices_noticebit
• process_templates_complete
• reputation_image
• postbit_imicons
• bbcode_parse_start
• bbcode_parse_complete_precache
• bbcode_parse_complete
• postbit_display_complete
• memberaction_dropdown
• postbit_attachment
• tag_fetchbit_complete