Multiple IF statemen assistance

Status
Not open for further replies.

pbourque

New Member
Joined
Jul 23, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
What IF statement could be used in the following example to receive the correct company (currently displayed as a header in multiply columns) in Row1, if the location row has a value in that column:
Below is the original file:

Original output
Ledger AccountLocationSBCCities CompanyVet CompanyAR CompanySD CompanyID Company
TaxPaw0.000.000.000.000.00550.00
Taxchoice0.000.000.000.000.00375.00
TaxLA0.000.000.000.00(11,363.54)0.00
TaxPass(2,330.74)0.000.000.000.000.00
TaxSFV0.000.000.000.00(3,592.52)0.00
TaxSB0.000.000.000.00(5,547.42)0.00
Taxafter0.000.000.00(131.14)0.000.00
TaxDogs0.000.000.000.00(227.52)0.00
TaxReference0.000.000.000.000.000.00

Would add Column B to hold the IF Statement:

Would like it to transpose to this:
LocationCompanytax
PawID Company550.00
choiceID Company375.00
LASD Company(11,363.54)
PassSBC(2,330.74)
SFVSD Company(3,592.52)
SBSD Company(5,547.42)
afterAR Company(131.14)
DogsSD Company(227.52)
ReferenceVet company4,500.00
 

Attachments

  • 1721778058662.png
    1721778058662.png
    13.3 KB · Views: 2

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You can try this. But the Reference Line get an error. Due to that there is no 4,500 value in the Vet Company column.

Book1
ABCDEFGH
1Ledger AccountLocationSBCCities CompanyVet CompanyAR CompanySD CompanyID Company
2TaxPaw00000550
3Taxchoice00000375
4TaxLA0000-11,363.540
5TaxPass-2,330.7400000
6TaxSFV0000-3,592.520
7TaxSB0000-5,547.420
8Taxafter000-131.1400
9TaxDogs0000-227.520
10TaxReference000000
11
12
13CompanyTax
14PawID Company550
15choice550375
16LA0-11363.54
17Pass0-2330.74
18SFV0-3592.52
19SB-3592.52-5547.42
20after0-131.14
21Dogs0-227.52
22Reference#CALC!#CALC!
Sheet1
Cell Formulas
RangeFormula
C14:C22C14=FILTER(C1:H1,(C2:H2<>0)*(SEQUENCE(1,6,1,1)))
D14:D22D14=FILTER(C2:H2,(C2:H2<>0)*(SEQUENCE(1,6,1,1)))
 
Upvote 0
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,221,545
Messages
6,160,446
Members
451,646
Latest member
mmix803

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