How to include an IF statement in an INDEX MATCH function

reasem

New Member
Joined
Nov 15, 2019
Messages
38
Hello, I have a formula i'm working on. I'm trying to pull a number from a different sheet using a ssn as my lookup value. It's working quite well but I want to include an IF statement to analyze the line that I'm pulling the number from. Note: The second sheet that i'm pulling from is an export sheet of documents stating ssn, the number I want, and page number. I want to include IF statement(s) that if the page length is above 1 to put the number im pulling into column A but if the page length is 1 to pull the number in column B.

Any ideas?

Thank you.

Here's my formula so far:
=IFERROR(INDEX('Data Dump'!H:W,MATCH(CONCATENATE("XXXXX",RIGHT('Documents on File'!R3195,4)),'Data Dump'!G:G,0),16),"")
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Do you want to know the number of pages of an excel sheet?
I don't know a formula that can get that data.
It must be with VBA.
 
Upvote 0
Do you want to know the number of pages of an excel sheet?
I don't know a formula that can get that data.
It must be with VBA.
The pages i'm referring to is data in the spreadsheet. It looks something like this:
SSNNumberPages
XXXXX45184778461
XXXXX325948715634

I have the function to pull the number from another table using the ssn. I now have 2 columns on the other sheet for either documents with above 1 pages and documents with 1 page. The same function will probably need to be in both columns but Im struggling on where to put the IF statement if needed
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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