Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel if and match

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Excel- if and match

Excel- if and match

ResolvedVersion 2013

Excel- if and match

Hello!

I am trying to use two formulas together, in order to match one table with another; however, I am not getting the right combination.
Could someone help me with it.
example:
Column 1 I have programs names & Column 2 I have Coverages
What I need is for excel to tell me the code (which is in another table) of the programs.

I tried to use the formula =IF(G24="JN",290407,FALSE), which worked however I need to add another 20 codes.

Thank you
Suellen

RE: Excel- if and match

Hi Suellen

If Table2 has a coloumn of programs as well as the corresponding codes, you should be able to use an INDEX MATCH function to do this:

=Index(Table2_CodeRange,MATCH(Table1_LookupProgram,Table2_ProgramRange,0))

If this isn't possible, you could use a nested IF to add your other codes:

=IF(G24="JN",290407,IF(G24="program","code",IF(G24="program","code",IF(... etc etc

However, the nested IF method is much longer and harder to avoid errors.

Hope this answers your question, let us know if you need any more help!

Regards

Sarah
Excel Trainer

Thu 12 Apr 2018: Automatically marked as resolved.

Excel tip:

Saving your Excel Spreadsheet as a CSV File

In situations where you need to save your Excel spreadsheet as a CSV file, follow these simple steps.

Click the File tab and click Save As.
Enter a name in the File name field.
Click the drop-down arrow next to the Save as type field to select the file type. Scroll down the list and select CSV (comma delimited) (*.CSV)
Click Save

The data will now be saved to a separate CSV file which can be used in different applications.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.