Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default How do I make excel add in one column if conditions are met in ano

For example, I want to say, if anything in column A (from rows 1-20) =1, then
add whatever is in column B for that same row and put it in field G26. Then
I want to say, if anything in column A (from rows 1-20) = 2, then add
whatever is in column B for that same row and it it in field H26, and so on
through, if anything in column A (from rows 1-20) =8, then add whatever is in
column B for that same row and put it in field M26. Does anyone know how I
can do that??
--
Thanks!
Jodie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How do I make excel add in one column if conditions are met in ano

G26:M26 = 7 cells

Try this entered in G26 and copied across as needed:

=SUMIF($A1:$A20,COLUMNS($G26:G26),$B1:$B20)

--
Biff
Microsoft Excel MVP


"Jodie" wrote in message
...
For example, I want to say, if anything in column A (from rows 1-20) =1,
then
add whatever is in column B for that same row and put it in field G26.
Then
I want to say, if anything in column A (from rows 1-20) = 2, then add
whatever is in column B for that same row and it it in field H26, and so
on
through, if anything in column A (from rows 1-20) =8, then add whatever is
in
column B for that same row and put it in field M26. Does anyone know how
I
can do that??
--
Thanks!
Jodie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default How do I make excel add in one column if conditions are met in

Wow. I'm stunned. It works great! You're right, I meant F26:M26. Thank
you SOOOO much!
--
Jodie


"T. Valko" wrote:

G26:M26 = 7 cells

Try this entered in G26 and copied across as needed:

=SUMIF($A1:$A20,COLUMNS($G26:G26),$B1:$B20)

--
Biff
Microsoft Excel MVP


"Jodie" wrote in message
...
For example, I want to say, if anything in column A (from rows 1-20) =1,
then
add whatever is in column B for that same row and put it in field G26.
Then
I want to say, if anything in column A (from rows 1-20) = 2, then add
whatever is in column B for that same row and it it in field H26, and so
on
through, if anything in column A (from rows 1-20) =8, then add whatever is
in
column B for that same row and put it in field M26. Does anyone know how
I
can do that??
--
Thanks!
Jodie




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How do I make excel add in one column if conditions are met in

I meant F26:M26.

Just change the reference from $G26:G26 to $F26:F26.

=SUMIF($A1:$A20,COLUMNS($F26:F26),$B1:$B20)


--
Biff
Microsoft Excel MVP


"Jodie" wrote in message
...
Wow. I'm stunned. It works great! You're right, I meant F26:M26. Thank
you SOOOO much!
--
Jodie


"T. Valko" wrote:

G26:M26 = 7 cells

Try this entered in G26 and copied across as needed:

=SUMIF($A1:$A20,COLUMNS($G26:G26),$B1:$B20)

--
Biff
Microsoft Excel MVP


"Jodie" wrote in message
...
For example, I want to say, if anything in column A (from rows 1-20)
=1,
then
add whatever is in column B for that same row and put it in field G26.
Then
I want to say, if anything in column A (from rows 1-20) = 2, then add
whatever is in column B for that same row and it it in field H26, and
so
on
through, if anything in column A (from rows 1-20) =8, then add whatever
is
in
column B for that same row and put it in field M26. Does anyone know
how
I
can do that??
--
Thanks!
Jodie






  #5   Report Post  
Junior Member
 
Posts: 1
Default

Hi this has given me a head start in a formula I am looking for...

I would like certain conditions meet I.e if a cell = a certain name it then adds specific columns and returns an amount...

The amount of names at the moment is 10 but this will increase to 300/400

Any ideas?

Thanks


Quote:
Originally Posted by T. Valko View Post
I meant F26:M26.

Just change the reference from $G26:G26 to $F26:F26.

=SUMIF($A1:$A20,COLUMNS($F26:F26),$B1:$B20)


--
Biff
Microsoft Excel MVP


"Jodie" wrote in message
...
Wow. I'm stunned. It works great! You're right, I meant F26:M26. Thank
you SOOOO much!
--
Jodie


"T. Valko" wrote:

G26:M26 = 7 cells

Try this entered in G26 and copied across as needed:

=SUMIF($A1:$A20,COLUMNS($G26:G26),$B1:$B20)

--
Biff
Microsoft Excel MVP


"Jodie" wrote in message
...
For example, I want to say, if anything in column A (from rows 1-20)
=1,
then
add whatever is in column B for that same row and put it in field G26.
Then
I want to say, if anything in column A (from rows 1-20) = 2, then add
whatever is in column B for that same row and it it in field H26, and
so
on
through, if anything in column A (from rows 1-20) =8, then add whatever
is
in
column B for that same row and put it in field M26. Does anyone know
how
I
can do that??
--
Thanks!
Jodie



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
How do I make a cell in Excel "blink" if conditions are met? steve-GA[_2_] Excel Worksheet Functions 1 July 17th 07 04:12 PM
How do I make automatic coloring in a cell vth conditions attache SPM Excel Discussion (Misc queries) 7 May 25th 07 11:56 AM
How do I Make a column in excel a check box column Marie Excel Discussion (Misc queries) 0 November 10th 06 10:42 PM
Excel, when column A and B have same name make column C add up in mail merge Dani B via OfficeKB.com Excel Discussion (Misc queries) 6 July 22nd 05 07:43 PM
How do I make a column in Excel into two columns for only A3-A8 ruffles the cat Excel Discussion (Misc queries) 1 June 23rd 05 01:25 PM


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

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

About Us

"It's about Microsoft Excel"