473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Need help in organising data

2
I am totally fresher in macros. Hope I will find help from this platform. I want to take out a fix percentage of rows from a worksheet for reporting purpose. Eg. If I have a worksheet of 20 rows & I need 75% of rows (i.e. 15 rows) out of it. Also, if the result of 75% is not a complete number (eg 15.2 rows), it should roundoff to 16.
Jan 30 '07 #1
2 915
Killer42
8,435 Expert 8TB
I am totally fresher in macros. Hope I will find help from this platform. I want to take out a fix percentage of rows from a worksheet for reporting purpose. Eg. If I have a worksheet of 20 rows & I need 75% of rows (i.e. 15 rows) out of it. Also, if the result of 75% is not a complete number (eg 15.2 rows), it should roundoff to 16.
I believe the expression is "round up" to 16.

Using your example, do you want to pick out 15 rows at random, or just take the first 15?
Jan 30 '07 #2
robo9
2
I believe the expression is "round up" to 16.

Using your example, do you want to pick out 15 rows at random, or just take the first 15?
Thanks for replying. Let me clarify-

I need to pick 75% of rows..it can be random or first rows. Eg. I have following data in a worksheet in 4 rows (4 rows is not fixed, it can be any number):

111111 wqerweqwrwwerqwr abdcdfd COMPLETE
123455 zxcvzxvxzvxvxcvxzv asdfsafs Not done
352114 sfasfsfdsfsadfsafasf asdffdfd In Progress
555555 asdfsafsafasfsafsfsf asdfsaff COMPLETE

I need to pick 75% of 4 rows & delete the rest. So, I will need any 3 rows randomly out of 4 & delete 4th.

However, if there were 5 rows, the 75% of that will come to 3.75 which I need the macro should roundup to 4 rows. I will eagerly await the response..!!
Jan 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Nick Evans | last post by:
Hey all, I am currently working on a simple program (small group membership database) just to get to grips with the language (bit of a newbie here :-)) and am wondering about the best way of...
6
by: baoilleach | last post by:
Dear all, Can anyone point me to a resource that describes the best way of organising a python project? My project (gausssum.sf.net) is based around a class, and has a GUI that allows...
1
by: ganich | last post by:
Hello, i am looking for a javascript which could help me in organising my website. Ok the problem ... i have created index.html and made full layout in it. I use iframe in a table to view the...
0
by: amollokhande1 | last post by:
Hi All, Currently we are facing an issue while decoding the Base64Encoded unicode data. Here is the scenario We have one custom javascript function that encodes the unicode data using Base64...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.