Count Numbers Next To Variables

rvill189

New Member
Joined
Mar 12, 2022
Messages
16
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am trying to create a formula in a daily inventory that calculates the number of pallets (indicated as P) in a column. As you can see below screenshot examples, "<value>P" is not always in the same position in the cell, and cells contain values that I do not need to account for (boxes, rolls, the "+" and "=" signs, etc.):

1647125955303.png
1647126646172.png
1647126977212.png


I want the formula to evaluate column E:E and calculate the number next to P only and whenever it exists next to P.

As an example between the three screenshots, the total the formula should return is 159.
 

Attachments

  • 1647126620577.png
    1647126620577.png
    4.8 KB · Views: 6
Hi! This worked like a charm at work. Thanks to all for the great work.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hello,

The formulas are still working and create a lot of visibility for us, thanks again. I have an formula on Column H that calculates the total "Days in Warehouse" against the date it was received; I noticed that the formula does not copy when someone inserts a row anywhere in the middle of the spreadsheet. As you can see below in cell H12, the formula did not populate/copy when a new row was inserted.

IMPORTS INVENTORY PULLMAN 03-04-2022(AutoRecovered).xlsx
GH
9RECEIVE DATEDAYS IN WAREHOUSE
102/28/202216
112/3/202241
121/1/2022
133/10/20226
Product Price List
Cell Formulas
RangeFormula
H10:H11,H13H10=IF(ISBLANK([@[RECEIVE DATE]]),"",ABS(DAYS([@[RECEIVE DATE]],TODAY())))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G554:H1048576,F5:G5,F8:G9Cell Valuecontains "completo"textNO
Cells with Data Validation
CellAllowCriteria
G9Any value
H9:H13Any value


Given the previous application with the helper column to constantly calculate pallets, is there a way to do the same for date received - where the formula would not disappear if a new row was inserted?
 
Upvote 0
I noticed that the formula does not copy when someone inserts a row anywhere in the middle of the spreadsheet.
Instead of inserting a whole row in the worksheet, can you just insert a row in the table? That way the formulas should auto-populate.

1647486089476.png



.. or right-click in the table ..

1647486141025.png
 
Upvote 0
Instead of inserting a whole row in the worksheet, can you just insert a row in the table? That way the formulas should auto-populate.

View attachment 60274


.. or right-click in the table ..

View attachment 60275
Thanks,

i have to investigate further. They populate when inserting, however the spreadsheet that is sent out to the team sometimes has those cells empty.
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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