Macro to search in Excel Part number column A from different groups different values and add not found value at end - search

I have values in PART Number field(Example-Column A 1-50), i have values in different groups, Ex-Engine A - 48 to 52, Engine B- 40 to 60, When macro run, user need to select Engine A or B or C etc. If Engine A selected 48 to 52 to be searched in Column A one by one and add not found value at end. Please help in macro
I dont know VBA, Please help me in creating Macro

Related

Range filtering on excel and count rows

I need your help about an excel range filtering, it's about a school project.
I have an excel file with 20k rows and a column with number range from 0 to 350k and I need somehow to filter them every 1k (0-999,1000-1999 etc) and to count how many rows/records have every team.
I am thinking about macros or VBA script but i don't even know the starting point, i hope someone can help me from where to start.
Many thanks!
With Office 365 we can do this in one formula and the results will spill:
=CHOOSE({1,2,3},SEQUENCE(351,,0,1000),SEQUENCE(351,,999,1000),FREQUENCY(A:A,SEQUENCE(350,,999,1000)))
Frequency is designed to take the number and the array of buckets and return the count.
With LET we can move the variables to the front:
=LET(
rng, A:A,
nmbckts, 351,
gp, 1000,
CHOOSE({1,2,3},
SEQUENCE(nmbckts,,0,gp),
SEQUENCE(nmbckts,,gp-1,gp),
FREQUENCY(rng,SEQUENCE(nmbckts-1,,gp-1,gp))))
No VBA needed:
If your values are in column A, just enter 0 and 9999 like in columns D/E. The rest of the numbers can be done with =D2+1000 and =E2+1000 and pulled down until 350k.
The counting can be done with =COUNTIFS(A:A,">="&D:D,A:A,"<="&E:E) in column F and pulled down.

How to duplicate a certain number of values and then change to another in Excel

Hi guys I am trying to expand an existing dataset but I don't know exactly what I have to do.
For example I got this set of values in excel cloumn A:
21
45
77
I need more observations in column B, so I would like 4 observations of the same value and after excel should pass to the next original value and generate another 4 observations.
Something like this I mean:
Hope anyone can help me
If your data starts at A1 then in B1 use:
=INDEX(A:A,(SEQUENCE(COUNTA(A:A)*4)+3)/4)
(Not sure if it requires ctrl+shift+enter for versions prior to office 365)

Adding values of column based on employee attendance

I have an excel sheet with the following data
I need result something like below
The VBA code must consider code say 12 and add corresponding dates say 02-jan login hours, next it should add 03-jan hours. For example,
code 12->02-Jan = 08 and 03-Jan = 9. Then for code 15->02-Jan =6 and 03-Jan=8 Likewise it should repeat every code in a loop and put each result in another column. Is there a way to solve using excel VBA. All I have done is do for specific cells but unable to generalize.

Finding next incremental value in MS Excel

I have an MS Excel worksheet which is used for recording systems requirements and the requirements are coded with ID as shown in the image below.
I would like the excel to give me the next ID automatically as soon as I input the description. This helps me the hassle of writing the next ID as you may see that some ID are incremental on rows. eg: row 44 & 49.
To explain the image. If a user requirement has an exception, that exception will have its own user requirement. Which is why it becomes tough for me to identify the next ID.
I did try =RIGHT(INDIRECT("J" & ROW() - 1),3) to get the current max based previous row value, however, it was hard for me to get max of the AB column.
If I write the description in row K, it should write the code in the corresponding J column based on the ID's in J & AB column. Same I would like to achieve when I enter a description in AC column, it should get the next code and write it in the corresponding AB column.
I am not really sure if there is any function that can help or do we need macros to perform that.

Excel coding using while loop

so I have a loooot of work that I need to do and it's basically just capturing data that are in different excel tabs, so I have a formula that gets the values from each different excel tab and then arranges it in the order I need so that I can simply copy and paste now what I do is change ='Tank 3'!12 to ='Tank 3'!S12 then highlight each row and use find and replace to change 12 to 13, 14 , 15 etc as there a lot of rows worth data in each tab, I was wondering if i could use a while loop in excel to accomplish this? Instead of going through 42 rows manually using find and replace? Any help will be much appreciated

Resources