Lookup and Sum

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
564
Office Version
  1. 2016
Platform
  1. Windows
What I am looking to do is have excel look up a state and sum the payroll for that state and if the payroll is higher than a certain amount give me a warning via some type of popup.

For example, in the date below I would want excel to sum all the paryoll for GA and if payroll exceeds 35,000,000 then have a popup or some type of warning that says "GA exceeds threshold".

State Entity Code Payroll
DE EHP SALES 951 140,713
FL BARING 3724 595,237
FL BARING 8742 1,832,401
FL BARING 8810 2,400,032
FL EHP SALES 8742 2,383,881
FL ELEC. PROF/DITO 8810 2,577,871
FL EUREKA 8017 297,000
FL INTL MIAMI 8742 339,761
FL INTL MIAMI 8810 2,354,658
GA EHP AUGUSTA 7421 260,613
GA EHP AUGUSTA 8742 7,648,095
GA EHP AUGUSTA 8810 28,869,520
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,942
Latest member
sharmarick

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