IFERROR AND RESULT IS "NOT POSTED" IF WITH OTHER RESULT

JOHATUP

New Member
Joined
May 26, 2023
Messages
38
Office Version
  1. 2013
Platform
  1. Windows
I have this formula below, where IFERROR, if the vlookup sheet does not have the document number on it it will show "Not posted "(But it does not mean everything is not posted, but it could mean its deleted), the formula works but I need to add it with formula that if cell B2 is "deleted" (this is the text content of the cell) then the result should be "deleted" instead of "Not Posted". I cannot seem to work this out cause it will show I have multiple arguments.
=IFERROR(VLOOKUP(O2,POSTED!C:I,7,0),"Not Posted")
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Possibly because you aren't looking in column B. You are looking in the 7th column of the range which is I.
 
Upvote 0
Possibly because you aren't looking in column B. You are looking in the 7th column of the range which is I.
the 7th is the vlookup file from another sheet, so I was referencing the B2 cell that if its deleted then it will replace the "not posted" label to "deleted".
 
Upvote 0
VLOOKUP(O2,POSTED!C:I,7,0)
=VLOOKUP(lookup_value,table_array,column_index_num,[range_lookup])
  • lookup_value - The value to look for in the first column of a table. =O2
  • table_array - The table from which to retrieve a value. =POSTED!C:I
  • column_index_num - The column in the table from which to retrieve a value. =7
  • range_lookup - [optional] TRUE = approximate match (default). FALSE = exact match. =0=exact match
 
Upvote 0
Do you just mean:
Excel Formula:
=IF(B2="Deleted",B2,IFERROR(VLOOKUP(O2,Posted!C:I,7,0),"Not Posted"))
 
Upvote 1
Solution
No problem. Thanks for letting us know.
One last question, i dont know if this is possible i wanted to as well change the data that contains "BTC_LT_SP2" to the word "System" from the same Vlookup file. See below formula i had tried to come up with but its not working.
=IF(B2="Deleted",B2,
IF(ISNUMBER(SEARCHI(VLOOKUP("BTC_LT_SP2",(O2,Posted!C:I,7,0)),"System",
IFERROR(VLOOKUP(O2,Posted!C:I,7,0),"Not Posted")))
 
Upvote 0
Unfortunately since you don't have MS 365 or O2021, you will need to do the VLookup twice. In the later versions you could use the LET function so that you only need to do it once.
Excel Formula:
=IF(B2="Deleted",B2,
         IF(ISNUMBER(SEARCH("BTC_LT_SP2",VLOOKUP(O2,Posted!C:I,7,0))),
               "System",
                IFERROR(VLOOKUP(O2,Posted!C:I,7,0),"Not Posted")))
 
Upvote 0
Unfortunately since you don't have MS 365 or O2021, you will need to do the VLookup twice. In the later versions you could use the LET function so that you only need to do it once.
Excel Formula:
=IF(B2="Deleted",B2,
         IF(ISNUMBER(SEARCH("BTC_LT_SP2",VLOOKUP(O2,Posted!C:I,7,0))),
               "System",
                IFERROR(VLOOKUP(O2,Posted!C:I,7,0),"Not Posted")))
Its okay,, this works on my end. Big help, thanks again for your skills and knowledge.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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