If statement

jlugo

Board Regular
Joined
Aug 12, 2011
Messages
146
Hi,


Question 1.
I'm trying to build a data drop sheet. My goal is to create an if statement that reads the column headers and row headers. If both read a certain word "lets say a month & employee wage" then to return the value where they both intersect.

Question 2.
Same concept as above, but I'm trying to create a formula to scan for certain GL codes in the row headers. If these code are identified, then add each value up. (i.e. Column A headers GL codes 6310 + 6500 + 6510 + 6540, their values to the right - Column B $345, $456, $567, & $678).

Any help is appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
this is the anwser the first question, and the second I think that I need some sample data to understand what you are talking about, can you please fill all borders around a small sample of the data, highlight it then copy and past it in here


Excel 2010
ABCDE
1MonthEmployee WageAddressCityState
2January$10.00123 main Streetthat Citythat State
3February$11.00124 main streetthat Citythat State
4March$12.00125 main Streetthat Citythat State
5April$13.00126 main Streetthat Citythat State
6May$14.00127 main Streetthat Citythat State
7June$15.00128 main Streetthat Citythat State
8
9
10
11FebruaryEmployee Wage$11.00
Sheet1
Cell Formulas
RangeFormula
D11=INDEX(B2:E7,MATCH(B11,A2:A7,0),MATCH(C11,B1:E1,0))
 
Upvote 0
Here is a sample of data:

JANFEBMAR
Exchange Rate Income/Loss-INR60012,2141,757(431)
Exchange Rate Income/Loss-GBP60021,203 1,568
Gain/Loss on Sale/Writeoff of Assets6003 77888
Other Non-Operating Income6005(6,514)(8,286)(13,469)
Employee Deferred Compensation Cost63102582601,769
Discontinued Operation Expenses65005,343
Facility Relocation Expenses651041,29960,8945,106
Transaction Related Expenses65207,3445,0581,060
Non-Recurring Legal Expenses65309,5361,938235
Non-Recurring Personnel Expenses654057,11738,8713,117
System Conversion Consulting Expenses655012,4107,41010,755
Other Non-Recurring Expenses659078,295
Suspense98991,203
Other non-recurring (income)/expenses 75,198(5,751)(12,244) Desired Results
Calculation - Other non-recurring (income)/expenses - (6001 + 6002 + 6003 + 6005 + 6590)

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

I am trying to create an if statement that would scan the column headers and scan the row headers that match the 6xxx account criteria. If it matches, it will perform either addition or subtraction type calculations.

Cell reference is not an option because rows are not static and always being switched around.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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