Find and show with formula.

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Good Day,
Is it possible that the formula will find specific number and will give the result as it is?
Its like if I wanted get from column A:A number 5 and if there is that number on that column it will type into the formulated cell as 5 if not it will keep blank.
Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
a vlookup or index/match

Index(A:A, Match(5,A:A,0))

But its better to use a range rather than A:A - so A1:A1000 or how ever many rows you have

You can out the 5 into a cell to lookup - say it was in cell C2 , and your range in A was A2 to A1000

Index(A2:A1000, Match(C2,A2:A1000,0))

Now any number you put in Cell C2 if it exists will be returned

and IFERROR will provide a blank cell if it cannot be found


=IFERROR(Index(A2:A1000, Match(C2,A2:A1000,0)),"")
 
Upvote 0
Hi,

How about using COUNTIF?

Book3.xlsx
ABCDE
1155
22
35
47
56
Sheet934
Cell Formulas
RangeFormula
E1E1=IF(COUNTIF(A1:A100,C1),C1,"")
 
Upvote 0
Or try

Book1
ABCDE
1955
22
35
47
51
Sheet1
Cell Formulas
RangeFormula
E1E1=IFERROR(VLOOKUP(C1,A:A,1,0),"")
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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