A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Set a value every 5 cells



 
 
Thread Tools Display Modes
  #1  
Old February 9th, 2009, 07:00 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Set a value every 5 cells

There is 1 data set is assumed running in A1 down, viz.:
In A1 down is: 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10
In the cell from B1 to B10 is empty (no value).

My question is that I want a excel formule would performance a task which it
can put a value e.g.1 every "5" cells. So, in my example, after setting the
formula, "1" will incorporate in the cell B5 and B10. Do you think an Excel
function can achieve the result according my requirement?

Many thanks, Wilchong

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200902/1

  #2  
Old February 9th, 2009, 07:37 AM posted to microsoft.public.excel.newusers
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Set a value every 5 cells

You should always ask the question you actually want an answer to rather
than asking a simplified question (your e.g. suggests this is not the
question you really want an answer to)... the odds are the solution to the
simpler problem will not be able to easily be modified to handle the real
question. Anyway, here is a formula to do what you asked...

=IF(MOD(ROW(),5)=0,"1","")

Put it in B1 and copy it down.

--
Rick (MVP - Excel)


"wilchong via OfficeKB.com" u43231@uwe wrote in message
news:916fe4a10491c@uwe...
There is 1 data set is assumed running in A1 down, viz.:
In A1 down is: 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10
In the cell from B1 to B10 is empty (no value).

My question is that I want a excel formule would performance a task which
it
can put a value e.g.1 every "5" cells. So, in my example, after setting
the
formula, "1" will incorporate in the cell B5 and B10. Do you think an
Excel
function can achieve the result according my requirement?

Many thanks, Wilchong

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200902/1


  #3  
Old February 9th, 2009, 07:52 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Set a value every 5 cells

Dear Rick,
Thanks a lot, it works extremely well!

Thanks,
Wilchong

Rick Rothstein wrote:
You should always ask the question you actually want an answer to rather
than asking a simplified question (your e.g. suggests this is not the
question you really want an answer to)... the odds are the solution to the
simpler problem will not be able to easily be modified to handle the real
question. Anyway, here is a formula to do what you asked...

=IF(MOD(ROW(),5)=0,"1","")

Put it in B1 and copy it down.

There is 1 data set is assumed running in A1 down, viz.:
In A1 down is: 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10

[quoted text clipped - 9 lines]

Many thanks, Wilchong


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200902/1

  #4  
Old February 9th, 2009, 08:05 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Set a value every 5 cells

Dear Rick,
Your suggested formula working very well. However, when I move the B1 to B2,
B2 to B3,……etc. The result is different. The value is not located in the
five, it is located in the first 4th cell of B5, however, my correspondence
colume in colume A shows 4.

Do you think I can put a range e.g. column A2:A11 in the function ROW()?

Many thanks,
Wilchong



Rick Rothstein wrote:
You should always ask the question you actually want an answer to rather
than asking a simplified question (your e.g. suggests this is not the
question you really want an answer to)... the odds are the solution to the
simpler problem will not be able to easily be modified to handle the real
question. Anyway, here is a formula to do what you asked...

=IF(MOD(ROW(),5)=0,"1","")

Put it in B1 and copy it down.

There is 1 data set is assumed running in A1 down, viz.:
In A1 down is: 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10

[quoted text clipped - 9 lines]

Many thanks, Wilchong


--
Message posted via http://www.officekb.com

  #5  
Old February 9th, 2009, 08:12 AM posted to microsoft.public.excel.newusers
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Set a value every 5 cells

If I understand your question correctly, try this formula...

=IF(MOD(ROW(A1),5)=0,"1","")

where I have put in the A1 (use that no matter what row you put the formula
in) inside the ROW function call.

--
Rick (MVP - Excel)


"wilchong via OfficeKB.com" u43231@uwe wrote in message
news:917075a995b20@uwe...
Dear Rick,
Your suggested formula working very well. However, when I move the B1 to
B2,
B2 to B3,……etc. The result is different. The value is not located in the
five, it is located in the first 4th cell of B5, however, my
correspondence
colume in colume A shows 4.

Do you think I can put a range e.g. column A2:A11 in the function ROW()?

Many thanks,
Wilchong



Rick Rothstein wrote:
You should always ask the question you actually want an answer to rather
than asking a simplified question (your e.g. suggests this is not the
question you really want an answer to)... the odds are the solution to the
simpler problem will not be able to easily be modified to handle the real
question. Anyway, here is a formula to do what you asked...

=IF(MOD(ROW(),5)=0,"1","")

Put it in B1 and copy it down.

There is 1 data set is assumed running in A1 down, viz.:
In A1 down is: 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10

[quoted text clipped - 9 lines]

Many thanks, Wilchong


--
Message posted via http://www.officekb.com


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.