IF criteria for a range of 790 rows

ashani

Active Member
Joined
Mar 14, 2020
Messages
345
Office Version
  1. 365
Platform
  1. Windows
Hi,

is it possible to have a formula for all the numbers in criteria to show the name in any column. For example

Criteria is :
123 abc
321 cde
456 ads
789 qwe
654 cgf
123 bbb
654 aaa

I would like the names next to criteria appear somewhere, like if there's any if formula etc I can put in.

Thank you once again.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
can you give more examples - i'm not following

you have a criteria of
123 abc
in the list - where is that criteria in a spreadsheet ???
what do you want to display

you could maybe use a countif() with an IF

give in words what you want to happen

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
hi etaf,

thank you for the response. So the criteria is letters next to numbers for example abc, def etc - so I want excel to work out wherever 123 or 456 etc mentioned than next to that put abc or def whichever is relevant.

Hope this makes sense.

Many thanks
 
Upvote 0
so it can look that up in a table

see column F & G

number entered in F - lookup will find the corresponding letter and put those in the cell - if it cannot find then you get the text "no match" or whatever you want

using column A & B to lookup a value and return the letters next to them

anywhere near what you are after ?]

Book1
ABCDEFG
1123abc789qwe
2321cde321cde
3456ads654cgf
4789qwe123abc
5654cgf6666no Match
6123bbb456ads
7654aaa
8
Sheet1
Cell Formulas
RangeFormula
G1:G6G1=IFERROR(INDEX($B$1:$B$7,MATCH(F1,$A$1:$A$7,0)),"no Match")
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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