Convert excel formula to Access formula

mcAvero

New Member
Joined
Jun 24, 2020
Messages
6
Office Version
2010
Platform
Windows
Hi there looking to convert the following excel formula to Access:

=IF([@[Pool_Standard]]="Current",SUMIF([SP ID],B5,[4201_SOH]),"See Current")

- Where "Pool_Standard" = Current
- Where "SP ID" is the same number eg. 1
- Then will SUM all values in "4201_SOH" in the first row, the remaining row to state "See Crurrent"
- Thus 4201_SPID_SOH, Total to equal 5 from the 2x rows listed (4+1)

Thank you for your help.



Sample Data
SP IDPool_Standard4201_SOH4201_SPID_SOH
1Current45
1Alternate1See Current
2Current22
3Current19
3Alternate8See Current
4Current23
4Alternate1See Current
4Alternate0See Current
5Current15
5Alternate0See Current
5Alternate4See Current
5Alternate0See Current
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

ranman256

Well-known Member
Joined
Jun 17, 2014
Messages
1,897
Make a query to sum the column,then join that query to your data table.
 

mcAvero

New Member
Joined
Jun 24, 2020
Messages
6
Office Version
2010
Platform
Windows
Good point, too focused on making the formula work... nice and simple...

Thank you.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,695
Messages
5,488,351
Members
407,633
Latest member
ps01

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top