IF/Then statement for worksheet.

spaces999

New Member
Joined
Feb 14, 2017
Messages
6
Hoping someone can help me with this problem I have. I need to have an excel sheet search for a set of numbers in a specific tab. Then if it finds that number, then place the word used or highlight it in some way. So there are tag numbers that are put in a sheet. There are 12 sheets named from January to December. The tags are put in these sheets but only specific ones need to be monitored. I would like to either highlight them in some way or, even better, next to the tag numbers that are being monitored, put what sheet they are on. Cell information would be helpful as well but I am trying to keep this simple. I don’t think VBA works here so I have been trying to figure out a formula to get this to work. I can't post the excel sheet to show but here is what the tables look like:


Used?Tech AssetsLocationCell
123455#NAME?
1222212222
1233312333
Yes3333333333APRIL - S0 & AssetD3
Yes2345623456JANUARY - S0 & AssetD4

<tbody>
</tbody>

Sheet Name: TECH ASSET TAGS

All other sheets are named: JANUARY - S0 & Asset all the way through DECEMBER

Each sheet looks like this:

TotalAssets:2
S0NumberAsset TagDateDescriptionLocationSerialTracking Number
S03423423125581/5/2017OPTIPLEX SMALL 7040building 74jkl4kj4kj4kjz123456789
S03423423234561/5/2017OPTIPLEX SMALL 7040building 2kjlwekjndfsnkz123456789

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This may not be exactly what you are after but I would think conditional formatting would be handy for you to look up.

You can do things like make the cell red if the number 200 is its value for example.

Also I'm sure vba would easily handle doing what you want.

Dave
 
Upvote 0
Yeah I am sure VBA will be the only way to go but not sure how that works. This company seems to block a lot of functions and I have never gotten a vba to actually work for some reason. Thanks.
 
Upvote 0
so are you saying code is not an option then?

I still think conditional formatting will fix most of your issues

dave
 
Upvote 0
Am I saying code is not an option? No, not at all. What I am saying is if he does not understand VBA code, recording a macro will write most of the code for him. It is the easiest way to dig in and learn about code.
 
Upvote 0
SQUIDD: I have only had luck with formulas. I know how to do search things on simple tasks like finding a particular word but in this case there are several numbers. So I need it to search several pages and go through all the cells to find specific numbers from a list. So there could be say 100 numbers it has to compare to. I am not sure how to formulate that.

myemail12248: I am not sure how to record macros. I am trying to watch youtube videos on these things but it is taking some time to get through them.

Best I have come up with is =IF('SEPTEMBER:[AUGUST - S0 & Asset:AUGUST - S0 & Asset'!D3:D1004=B2:B1000,"") but it will not list the number yet so I am going to try and keep adding onto it. I am thinking if I can get it to at least search and compare the numbers, I can maybe put other formulas in place to make them show up elsewhere. If that makes any sense at all.
 
Upvote 0
Am I saying code is not an option? No, not at all. What I am saying is if he does not understand VBA code, recording a macro will write most of the code for him. It is the easiest way to dig in and learn about code.


myemail1248, i was replying to spaces999 about code not being an option as he said his compmany blocks them.
sorry for the confusion.

dave
 
Upvote 0
SQUIDD: I have only had luck with formulas. I know how to do search things on simple tasks like finding a particular word but in this case there are several numbers. So I need it to search several pages and go through all the cells to find specific numbers from a list. So there could be say 100 numbers it has to compare to. I am not sure how to formulate that.

myemail12248: I am not sure how to record macros. I am trying to watch youtube videos on these things but it is taking some time to get through them.

Best I have come up with is =IF('SEPTEMBER:[AUGUST - S0 & Asset:AUGUST - S0 & Asset'!D3:D1004=B2:B1000,"") but it will not list the number yet so I am going to try and keep adding onto it. I am thinking if I can get it to at least search and compare the numbers, I can maybe put other formulas in place to make them show up elsewhere. If that makes any sense at all.


i think code is the way forward if you can.

can you tell us exacly what you would like the code to do, what column to put the data.

it looks like you want to write a list in sheet 1, have the code search for them and tell you all cell adresses they were found on including sheet name(month)

can you give an example of how sheet 1 would need to look.

see what can be done for you.

dave
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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