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

Hello All,

I'm currently working on a spreadsheet for our President
and I'm trying to simplify my formula.

Basically I'm comparing each cell in a column to a specific
fixed cel and if they match I add the value contained in
cell that corresponds to each of the cels being compared.

My formula thus far:

=IF(J7=L1,H7,"0")+IF(J8=L1,H8,"0")+IF(J9=L1,H9,"0" )+IF(J10=L1,H10,"0")+IF(J11=L1,H11,"0")+IF(J12=L1, H12,"0")

As you can see this will be quite lengthy once I get
through all 200 cels. Is there a way to simplify this?

Thank you in advance,
Jack
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need to make this simpler.

=sumif(J7:J207,L1,H7:H207)

--
Regards,
Tom Ogilvy


"Jack" wrote in message
...
Hello All,

I'm currently working on a spreadsheet for our President
and I'm trying to simplify my formula.

Basically I'm comparing each cell in a column to a specific
fixed cel and if they match I add the value contained in
cell that corresponds to each of the cels being compared.

My formula thus far:

=IF(J7=L1,H7,"0")+IF(J8=L1,H8,"0")+IF(J9=L1,H9,"0" )+IF(J10=L1,H10,"0")+IF(J1
1=L1,H11,"0")+IF(J12=L1,H12,"0")

As you can see this will be quite lengthy once I get
through all 200 cels. Is there a way to simplify this?

Thank you in advance,
Jack


  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Need to make this simpler.

Thank you very much. I completely overlooked that function
and it works perfectly.
Thanks again,
Jack
-----Original Message-----
=sumif(J7:J207,L1,H7:H207)

--
Regards,
Tom Ogilvy


"Jack" wrote in message
...
Hello All,

I'm currently working on a spreadsheet for our President
and I'm trying to simplify my formula.

Basically I'm comparing each cell in a column to a specific
fixed cel and if they match I add the value contained in
cell that corresponds to each of the cels being compared.

My formula thus far:

=IF(J7=L1,H7,"0")+IF(J8=L1,H8,"0")+IF(J9=L1,H9,"0 ")+IF(J10=L1,H10,"0")+IF(J1
1=L1,H11,"0")+IF(J12=L1,H12,"0")

As you can see this will be quite lengthy once I get
through all 200 cels. Is there a way to simplify this?

Thank you in advance,
Jack


.

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
is there a simpler way to do this formula? Jenna Excel Worksheet Functions 5 March 1st 10 10:57 PM
VBA code simpler? mohavv Excel Discussion (Misc queries) 4 December 2nd 07 06:39 AM
Complex formula vs. simpler GerryK Excel Worksheet Functions 3 December 6th 05 03:33 PM
How to run a macro many times simpler? cyberdude[_2_] Excel Programming 3 August 7th 04 01:54 PM
Lil Simpler ksnapp[_16_] Excel Programming 3 March 4th 04 12:32 AM


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