Access Formulas

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
185
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Am I able to write a formula to capture info from another formula in the same query. For ex. The top formula gives me the data and the bottom formula is what I want to produce a result based on the to formula.

AT&T Status: IIf(Left([MSLA NTG]![JobIdentifier],3)="PWO","PWO",IIf(Left([MSLA NTG]![JobIdentifier],3)="DIS","NEED SURVEY",IIf(Left([MSLA NTG]![JobIdentifier],5)="Issue","REF TO ENG",IIf(Left([MSLA NTG]![JobIdentifier],4)="PRTP","REF TO ENG",IIf(Left([MSLA NTG]![JobIdentifier],2)="RW","RW REQUIRED",IIf(Left([MSLA NTG]![JobIdentifier],3)="DIS","DISPUTE",IIf(Left([MSLA NTG]![JobIdentifier],4)="CONST","CONST REVISIT",IIf(Left([MSLA NTG]![JobIdentifier],4)="DROP","DROP ONLY",IIf(Left([MSLA NTG]![JobIdentifier],3)="ENG","REF TO ENG",IIf(Left([MSLA NTG]![JobIdentifier],3)="Ref","REF TO ENG",IIf(Left([MSLA NTG]![JobIdentifier],3)="Reo","NEED SURVEY",IIf(Right([MSLA NTG]![JobIdentifier],1)="n" Or Right([MSLA NTG]![JobIdentifier],1)="d" Or Right([MSLA NTG]![JobIdentifier],1)="b" Or Right([MSLA NTG]![JobIdentifier],1)="a" Or Right([MSLA NTG]![JobIdentifier],1)="c","EWO","Need Survey"))))))))))))

This produces a result of PWO, Needs Survey, REF TO ENG, etc..


Responsible Party: IIf(Left([MSLA NTG]![AT&T Status],3)="PWO","Construction",IIf(Left([MSLA NTG]![AT&T Status],3)="EWO","Construction",IIf(Left([MSLA NTG]![AT&T Status],2)="rw","Construction",IIf(Left([MSLA NTG]![AT&T Status],4)="Need","SourceOne",IIf(Left([MSLA NTG]![AT&T Status],3)="AFO","AFO"))))))))

This is what I wrote to capture the top result and produce Construction, SourceOne, AFO, etc. However, I get a parameter value message each time I try this.

Any help would be appreciated. Thanks John
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
nevermind, i figured out my issue. the mlsa ntg does not appear in the top formula box. dummy me!!
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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