# Sumif greater or equal to

1. ## Sumif greater or equal to

I am looking to do a sumif (I think it should be a Sumif).

See the attached example. Basically I want to sum in a formula a list of numbers, however, if the numbers are greater than the keys max number I want it to take the max number.

So in my example the max value of A is 3, so a value of 4 should be treated as a 3. In my example column J is how I want the numbers to be treated. I'd like to avoid duplicating the table and just have it do these calculations in the formula.

2. ## Re: Sumif greater or equal to

Try

=MIN(F7,VLOOKUP(E7,\$A\$4:\$B\$5,2,0))

3. ## Re: Sumif greater or equal to

That would work for a line by line basis, but I need something to put in F16 that sums F7:F12 like that.

4. ## Re: Sumif greater or equal to

Why?

I would think it is beneficial to have the 'adjusted' amount shown for each individual line. Then sum that.
If you just put a formula that results in 9 instead of 15, That would be odd to someone looking at the sheet and sees numbers that add up to 15.

It is not a 'bad thing' to use extra cells to complete a calculation. Excel gives you over 1 million rows and 16 thousand columns.
That's over 17 billion cells. You might as well use a few of them.

In fact, splitting calculations into multiple cells usually makes that calculation more efficient.
Cramming all that calculation into 1 formula will be less efficient.

5. ## Re: Sumif greater or equal to

I have quite a bit of data in the actual spreadsheet, multiple columns and rows, not just one like the example, additionally, the spreadsheet is subject to growth and I would rather have a single formula to avoid any cell referencing concerns that might happen. If a single formula isn't plausible then I can make the other work, just the way this spreadsheet is setup a single formula would be ideal.

6. ## Re: Sumif greater or equal to

I tried, but am unable to work out a single formula method.

7. ## Re: Sumif greater or equal to

ARRAY formula. Pl see note.

``Please Login or Register  to view this content.``

8. ## Re: Sumif greater or equal to

Excellent, thank you!

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.07960 seconds
• Memory Usage 9,081KB
• Queries Executed 16 (?)
Template Usage (35):
• (1)bbcode_code
• (1)footer
• (1)forumrules
• (1)gobutton
• (8)memberaction_dropdown
• (1)navbar
• (4)navbar_noticebit
• (6)option
• (2)postbit_attachment
• (8)postbit_legacy
• (8)postbit_onlinestatus
• (8)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_attachment
• postbit_display_complete
• memberaction_dropdown
• tag_fetchbit_complete