Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default help needed to write formula for excel spreadsheet

Sorry, I explained this slightly wrong. Please read following for
better explanation of what I'm after.

I have Excel 2007.

There is one sheet with 2 columns of data.

Column one has a series of numbers (e.g, 111,22,3333,etc).
Column 2 has a series of terms (e.g, work,gym,home,etc).

My problem is: whereas there is a series of numbers in column 1, the
terms in column 2 only appear on the first row of each of these column
1 series.

1 work
1
1

1
1
1
1

2 gym
2

2
2
2
2

3 shop
3
3
3

3
3

I want the terms to appear every time alongside each column 1 number.

1 work
1 work
1 work

1 work
1 work
1 work
1 work

2 gym
2 gym

2 gym
2 gym
2 gym
2 gym

3 shop
3 shop
3 shop
3 shop

3 shop
3 shop

Can anyone supply a formula which I can put in column 3 which I can
fill down to provide the desired effect??
Big thanks.
Colwyn.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default help needed to write formula for excel spreadsheet

Assume source data as posted in A1:B1 down
In C1: =B1
In C2, copied down: =IF(B2="",C1,B2)
Then in D1, copied down: =IF(A1="","",C1)
Required result in col D
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"colwyn" wrote in message
...
Sorry, I explained this slightly wrong. Please read following for
better explanation of what I'm after.

I have Excel 2007.

There is one sheet with 2 columns of data.

Column one has a series of numbers (e.g, 111,22,3333,etc).
Column 2 has a series of terms (e.g, work,gym,home,etc).

My problem is: whereas there is a series of numbers in column 1, the
terms in column 2 only appear on the first row of each of these column
1 series.

1 work
1
1

1
1
1
1

2 gym
2

2
2
2
2

3 shop
3
3
3

3
3

I want the terms to appear every time alongside each column 1 number.

1 work
1 work
1 work

1 work
1 work
1 work
1 work

2 gym
2 gym

2 gym
2 gym
2 gym
2 gym

3 shop
3 shop
3 shop
3 shop

3 shop
3 shop

Can anyone supply a formula which I can put in column 3 which I can
fill down to provide the desired effect??
Big thanks.
Colwyn.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default help needed to write formula for excel spreadsheet

Hi,

Turn on Auto Filters, Filter column A for all Non blanks. Highlight the
column B data and press F5, Special, Blanks. With all the blanks selected
type
=
Up Arrow
and press Ctrl Enter
(this means type = to start a formula, press the up arrow key once, then
press Ctrl Enter).
Select all the cells in column B and choose Copy, Paste Special, Values.

Even if you don't need this technique here, it is well worth learning!


--
Thanks,
Shane Devenshire


"colwyn" wrote:

Sorry, I explained this slightly wrong. Please read following for
better explanation of what I'm after.

I have Excel 2007.

There is one sheet with 2 columns of data.

Column one has a series of numbers (e.g, 111,22,3333,etc).
Column 2 has a series of terms (e.g, work,gym,home,etc).

My problem is: whereas there is a series of numbers in column 1, the
terms in column 2 only appear on the first row of each of these column
1 series.

1 work
1
1

1
1
1
1

2 gym
2

2
2
2
2

3 shop
3
3
3

3
3

I want the terms to appear every time alongside each column 1 number.

1 work
1 work
1 work

1 work
1 work
1 work
1 work

2 gym
2 gym

2 gym
2 gym
2 gym
2 gym

3 shop
3 shop
3 shop
3 shop

3 shop
3 shop

Can anyone supply a formula which I can put in column 3 which I can
fill down to provide the desired effect??
Big thanks.
Colwyn.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula needed for repetative spreadsheet amatur wkr Excel Worksheet Functions 3 April 30th 08 08:47 PM
how do i write formula for if condition in excel? Anjali New Users to Excel 4 August 16th 06 01:13 PM
How do I write this formula in Excel? woodie Excel Worksheet Functions 3 June 18th 06 01:53 PM
How do I write a formula in Excel L@FUTUREALL Excel Worksheet Functions 11 November 3rd 05 07:09 PM
Write to a New Spreadsheet Daniell Excel Discussion (Misc queries) 3 October 5th 05 10:21 PM


All times are GMT +1. The time now is 09:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"