How to merge two formulas in to one formula

Ingemar

New Member
Joined
May 8, 2017
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hello Excel specialists,

I have two formulas I would like to merge:

First formula
=IFERROR(VLOOKUP($A8,List2!A:T,9,0),"Value not found")
This formula is checking if cell value of A8 exists in List 2


Second formula
=IF(ISBLANK(VLOOKUP($A8,List2!A:T,9,0)),"Empty",VLOOKUP($A8,List2!A:T,9,0))
This formula is checking if a cell in List 2 is blank. If not, the formula will return the cell value 9 columns to the right of the VLOOKUP cell.

Booth formulas above are working fine when they are separated. I am trying to merge the formulas like the example below but I get the message that "You've entered too many arguments for this function."

=IFERROR(VLOOKUP($A8,List2!A:T,9,0),"Value not found",IF(ISBLANK(VLOOKUP($A8,List2!A:T,9,0)),"Empty",VLOOKUP($A8,List2!A:T,9,0)))

Any kind of help is appreciated.

Kind regards

Ingemar
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
Are the values that the formula returns text or numbers?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
Ignore my previous question, didn't realise you have three possible responses.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Try
Excel Formula:
=IF(ISERROR(VLOOKUP($A8,List2!A:T,9,0)),"Value not found",IF(ISBLANK(VLOOKUP($A8,List2!A:T,9,0)),"Empty",VLOOKUP($A8,List2!A:T,9,0)))
 

Ingemar

New Member
Joined
May 8, 2017
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hello Fluff,

Your formula works great. T H A N K Y O U very much for your help.

Kind regards

Ingemar
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
59,920
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,136,317
Messages
5,675,047
Members
419,546
Latest member
RobWayCot

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
Top