Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Function help!


If I have a list of nations with values assigned to them based on recent
sport results, is there any way I can add the value I wish to assign
from the results that I have on my second page? For example, Spain may
have played 5 games and I want to use macros to add the value of their
results from page 2 on to page 1. I just don't know how to assign the
value each time a team name appears.
Any help would be of great assistance,

Cheers,

Phil


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=548544

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Function help!

Hi Phil,

I think you should be able to do this without the need for Macros using
worksheet functions like Sumif. for example if you use
=SUMIF(Sheet2!A1:A50,Sheet1!A1,Sheet2!B1:B50) this will sum the value
in column B on sheet 2 where the value in column A equals that of sheet
1 cell A1. So if cell A1 (sheet1) equals spain, anytime on sheet2 where
spain appears between the ranges of A1 to A50 the values in B1 to B50
will be added.

If I have misunderstood or not explained well enough then post back.

Cheers,

James


phil2006 wrote:
If I have a list of nations with values assigned to them based on recent
sport results, is there any way I can add the value I wish to assign
from the results that I have on my second page? For example, Spain may
have played 5 games and I want to use macros to add the value of their
results from page 2 on to page 1. I just don't know how to assign the
value each time a team name appears.
Any help would be of great assistance,

Cheers,

Phil


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=548544


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Function help!


Thanks! That was helpful! I'm still not entirely sure if it will wor
though. I have to use macros because each result is given a value, thi
value then has to displace the oldest result and then the team has a ne
rating which can then be updated as the next result is reached. Thu
rather than merely adding all of the results they will be weighte
based on the last few games. So what I need is some formula that wil
transpose say, Spain's most recent result onto sheet one, and if Spai
then have another result it shall replace this one as the most recent
I don't think I'm explaining this too clearly but any help would b
very much appreciated!
Thank

--
phil200
-----------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...fo&userid=3509
View this thread: http://www.excelforum.com/showthread.php?threadid=54854

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Function help!

Hi Phil,

No I am not entirely sure what you are trying to do. So keeping to the
example of spain you are tracking there recent wins on sheet two and
then formulating a league table on sheet 1? But you only want there
recent wins? So say Spain win 2-1, do they get a higher score than if
they win 3-1 and does that add up to what there value is or is it there
latest game(s) that determines there score? There are functions to pick
up multiple sumif's etc. or the maximum three results etc.

Cheers,

James

phil2006 wrote:
Thanks! That was helpful! I'm still not entirely sure if it will work
though. I have to use macros because each result is given a value, this
value then has to displace the oldest result and then the team has a new
rating which can then be updated as the next result is reached. Thus
rather than merely adding all of the results they will be weighted
based on the last few games. So what I need is some formula that will
transpose say, Spain's most recent result onto sheet one, and if Spain
then have another result it shall replace this one as the most recent!
I don't think I'm explaining this too clearly but any help would be
very much appreciated!
Thanks


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=548544


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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Adding a custom function to the default excel function list DonutDel Excel Programming 3 November 21st 03 03:41 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 10:17 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"