Help in correcting/reworking this general IF+INDEX/MATCH(?) Formula

ACAyeras

New Member
Joined
Sep 24, 2020
Messages
5
Office Version
  1. 2013
Platform
  1. Windows
Good Day, Good People

I'm having some troubles writing the proper formula for my data
Basically, I'll fetch the data from one sheet (RAW) to another main work area (IIIE), but there's some error

Here's my goal:
First, check if the corresponding value on RAW is greater than 0 (if not, print the string "OUT")
Next, check if the character "*G*" is on its corresponding header; if yes, print "HIT"
Meanwhile, if the character "*F*" is on the corresponding header, print "FALSE"
If neither G nor F is there, print "ERROR"

This is the formula that I wrote, but it throws an error, and I can't seem to find where the mistake is
IF((INDEX(RAW!$B$3:$B$75,MATCH([@ID],[ID],0)))>0,IF(TableIIIE[[#Headers],[AG1]:[BG15]])="*G*","HIT",IF(TableIIIE[[#Headers],[AG1]:[BG15]])="*F*","FALSE","ERROR")),"OUT"))

I also attached the Excel file
Hope you can lend me some help quickly

Thanks,
Ash


P.S. I can't show the full thing since a screenshot is limited, but it's essentially the same
 

Attachments

  • image_2021-06-23_181846.png
    image_2021-06-23_181846.png
    39.2 KB · Views: 11
  • image_2021-06-23_181910.png
    image_2021-06-23_181910.png
    23 KB · Views: 9

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Good Day, Good People

I'm having some troubles writing the proper formula for my data
Basically, I'll fetch the data from one sheet (RAW) to another main work area (IIIE), but there's some error

Here's my goal:
First, check if the corresponding value on RAW is greater than 0 (if not, print the string "OUT")
Next, check if the character "*G*" is on its corresponding header; if yes, print "HIT"
Meanwhile, if the character "*F*" is on the corresponding header, print "FALSE"
If neither G nor F is there, print "ERROR"

This is the formula that I wrote, but it throws an error, and I can't seem to find where the mistake is
IF((INDEX(RAW!$B$3:$B$75,MATCH([@ID],[ID],0)))>0,IF(TableIIIE[[#Headers],[AG1]:[BG15]])="*G*","HIT",IF(TableIIIE[[#Headers],[AG1]:[BG15]])="*F*","FALSE","ERROR")),"OUT"))

I also attached the Excel file
Hope you can lend me some help quickly

Thanks,
Ash


P.S. I can't show the full thing since a screenshot is limited, but it's essentially the same
Decoy Table.xlsx
A
1ID
RAW
 
Upvote 0

Forum statistics

Threads
1,215,620
Messages
6,125,876
Members
449,268
Latest member
sGraham24

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