PC Review


Reply
Thread Tools Rate Thread

Creating a template that is manually updated from another sheet.

 
 
MKruer@gmail.com
Guest
Posts: n/a
 
      22nd Oct 2008
Usually I am pretty good at using formulas, but this one has me
baffled, I am pretty sure it is possible.

I have two sheets; on the first page I have all my calculations and
variables, one row per item, but multiple columns. On the second
sheet I have how the items should be formatted. I am trying to figure
out a way script it so I can choose a row, and have it fill in the
cells on sheet 2, or choose another row from sheet 1 and have it
recalculate the cells on the sheet 2. In a nutshell sheet 2 is a
template that gets it information form sheet one. The trick is that I
need to be able to choose what rows from the first sheet.
 
Reply With Quote
 
 
 
 
John C
Guest
Posts: n/a
 
      22nd Oct 2008
Well, without knowing your data structure at all, and without knowing how you
are obtaining which specific row, you could do something like this:
Assuming A1 contains the row that you need.

B1: =INDIRECT("Sheet1!B"&A1)

If this doesn't get you on the right track, post back with more info, such
as data structure, formulas, and expected results.
--
** John C **


"(E-Mail Removed)" wrote:

> Usually I am pretty good at using formulas, but this one has me
> baffled, I am pretty sure it is possible.
>
> I have two sheets; on the first page I have all my calculations and
> variables, one row per item, but multiple columns. On the second
> sheet I have how the items should be formatted. I am trying to figure
> out a way script it so I can choose a row, and have it fill in the
> cells on sheet 2, or choose another row from sheet 1 and have it
> recalculate the cells on the sheet 2. In a nutshell sheet 2 is a
> template that gets it information form sheet one. The trick is that I
> need to be able to choose what rows from the first sheet.
>

 
Reply With Quote
 
MKruer@gmail.com
Guest
Posts: n/a
 
      22nd Oct 2008
On Oct 22, 6:04*am, John C <johnc@stateofdenial> wrote:
> Well, without knowing your data structure at all, and without knowing howyou
> are obtaining which specific row, you could do something like this:
> Assuming A1 contains the row that you need.
>
> B1: =INDIRECT("Sheet1!B"&A1)
>
> If this doesn't get you on the right track, post back with more info, such
> as data structure, formulas, and expected results.
> --
> ** John C **
>
> "MKr...@gmail.com" wrote:
> > Usually I am pretty good at using formulas, but this one has me
> > baffled, I am pretty sure it is possible.

>
> > I have two sheets; on the first page I have all my calculations and
> > variables, one row per item, but multiple columns. *On the second
> > sheet I have how the items should be formatted. *I am trying to figure
> > out a way script it so I can choose a row, and have it fill in the
> > cells on sheet 2, or choose another row from sheet 1 and have it
> > recalculate the cells on the sheet 2. *In a nutshell sheet 2 is a
> > template that gets it information form sheet one. *The trick is that I
> > need to be able to choose what rows from the first sheet.


 
Reply With Quote
 
MKruer@gmail.com
Guest
Posts: n/a
 
      22nd Oct 2008
This is a small fictional data set, but it should be able to clarify
what I am looking for. The problem is that I need to be able to choose
which row i want the formula to use, but i don't want to have to go to
each and every cell to update the formula to use the new row.

Example

:Column A, Column B, Column C, Column D,
Row 1: 25, 49, apple, orange
Row 2: 10, 100, pear, lemon

If I select (this is the problem that I am having) the first row the
output should be
Amount on hand = 25
Amount required = 49
Item = apple
Substitute Item = orange

If i select the second row the output would be
Amount on hand = 10
Amount required = 100
Item = pear
Substitute Item =lemon
 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      22nd Oct 2008
Okay, assuming your other tab is called Produce, and like you stated, your
data actually begins in column A, and row 1 (i.e.: no headers). Then on your
main tab, you need to select which row. If you are selecting by row number,
then use the following for each. I am using cell B2 as the reference on my
main tab for which row number I want to use, so your formulas would be as
follows.

Amount on Hand:
=IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!A"&$B$2),"")

Amount Required:
=IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!C"&$B$2),"")

Item:
=IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!C"&$B$2),"")

Substitute Item:
=IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!D"&$B$2),"")

Hope this helps.
--
** John C **
Please remember, if your question is answered, to check the YES box below.
It helps everyone.


"(E-Mail Removed)" wrote:

> This is a small fictional data set, but it should be able to clarify
> what I am looking for. The problem is that I need to be able to choose
> which row i want the formula to use, but i don't want to have to go to
> each and every cell to update the formula to use the new row.
>
> Example
>
> :Column A, Column B, Column C, Column D,
> Row 1: 25, 49, apple, orange
> Row 2: 10, 100, pear, lemon
>
> If I select (this is the problem that I am having) the first row the
> output should be
> Amount on hand = 25
> Amount required = 49
> Item = apple
> Substitute Item = orange
>
> If i select the second row the output would be
> Amount on hand = 10
> Amount required = 100
> Item = pear
> Substitute Item =lemon
>

 
Reply With Quote
 
MKruer@gmail.com
Guest
Posts: n/a
 
      22nd Oct 2008
Thats exactly what I was looking for. Thank you.

On Oct 22, 11:14*am, John C <johnc@stateofdenial> wrote:
> Okay, assuming your other tab is called Produce, and like you stated, your
> data actually begins in column A, and row 1 (i.e.: no headers). Then on your
> main tab, you need to select which row. If you are selecting by row number,
> then use the following for each. I am using cell B2 as the reference on my
> main tab for which row number I want to use, so your formulas would be as
> follows.
>
> Amount on Hand:
> =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!A"&$B$2),"")
>
> Amount Required:
> =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!C"&$B$2),"")
>
> Item:
> =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!C"&$B$2),"")
>
> Substitute Item:
> =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!D"&$B$2),"")
>
> Hope this helps.
> --
> ** John C **
> Please remember, if your question is answered, to check the YES box below..
> It helps everyone.
>
> "MKr...@gmail.com" wrote:
> > This is a small fictional data set, but it should be able to clarify
> > what I am looking for. The problem is that I need to be able to choose
> > which row i want the formula to use, but i don't want to have to go to
> > each and every cell to update the formula to use the new row.

>
> > Example

>
> > :Column A, Column B, * * * Column C, * * * Column D,
> > Row 1: 25, 49, * * apple, *orange
> > Row 2: 10, 100, * *pear, * lemon

>
> > If I select (this is the problem that I am having) the first row the
> > output should be
> > Amount on hand * * *= 25
> > Amount required * * = 49
> > Item = apple
> > Substitute Item = orange

>
> > If i select the second row the output would be
> > Amount on hand = 10
> > Amount required * * = 100
> > Item = pear
> > Substitute Item =lemon


 
Reply With Quote
 
John C
Guest
Posts: n/a
 
      22nd Oct 2008
You are welcome, and thanks for the feedback. Please remember to check the
YES box below so that others can know this is done.
--
** John C **


"(E-Mail Removed)" wrote:

> Thats exactly what I was looking for. Thank you.
>
> On Oct 22, 11:14 am, John C <johnc@stateofdenial> wrote:
> > Okay, assuming your other tab is called Produce, and like you stated, your
> > data actually begins in column A, and row 1 (i.e.: no headers). Then on your
> > main tab, you need to select which row. If you are selecting by row number,
> > then use the following for each. I am using cell B2 as the reference on my
> > main tab for which row number I want to use, so your formulas would be as
> > follows.
> >
> > Amount on Hand:
> > =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!A"&$B$2),"")
> >
> > Amount Required:
> > =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!C"&$B$2),"")
> >
> > Item:
> > =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!C"&$B$2),"")
> >
> > Substitute Item:
> > =IF(OR($B$2="",$B$2<COUNT(Produce!A:A)),INDIRECT("Produce!D"&$B$2),"")
> >
> > Hope this helps.
> > --
> > ** John C **
> > Please remember, if your question is answered, to check the YES box below..
> > It helps everyone.
> >
> > "MKr...@gmail.com" wrote:
> > > This is a small fictional data set, but it should be able to clarify
> > > what I am looking for. The problem is that I need to be able to choose
> > > which row i want the formula to use, but i don't want to have to go to
> > > each and every cell to update the formula to use the new row.

> >
> > > Example

> >
> > > :Column A, Column B, Column C, Column D,
> > > Row 1: 25, 49, apple, orange
> > > Row 2: 10, 100, pear, lemon

> >
> > > If I select (this is the problem that I am having) the first row the
> > > output should be
> > > Amount on hand = 25
> > > Amount required = 49
> > > Item = apple
> > > Substitute Item = orange

> >
> > > If i select the second row the output would be
> > > Amount on hand = 10
> > > Amount required = 100
> > > Item = pear
> > > Substitute Item =lemon

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there an updated 2009-2010 student attendance sheet? (template) Marlene Microsoft Excel Misc 1 24th Aug 2009 05:54 PM
Fields to be updated manually or automatically Liam Microsoft Access Forms 4 13th Aug 2008 11:11 PM
Is an .ics file updated automatically or manually? FLBuckeye Microsoft Outlook Calendar 8 24th Apr 2008 12:55 AM
manually calling a template argument constructor, How ??? Nadav Microsoft VC .NET 3 12th Apr 2008 06:10 AM
Creating a bar graph manually =?Utf-8?B?V0xNUGlsb3Q=?= Microsoft Excel Worksheet Functions 5 23rd Jun 2005 07:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:44 PM.