Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default SOS! how do I write a customized function to do multiple-value lookupin Excel 2007?


I have two regions in exact same places of sheet 1 and sheet 2,
I want to find all cells in the region in sheet 1, with cell
content equal to 0,
and then add the numbers at the corresponding locations in the region
in sheet 2 up.
For example, let's say in the region in sheet 1,
there are multiple locations where the cell content = 0:
A1,
B3,
C4,
D2,
etc...
I would like to obtain sum(sheet2!A1, sheet2!B3, sheet2!C4, sheet2!
D2), etc.
How do I do that?
I want to write a user customized function for that: The regions in
sheet1 and sheet2 are fixed to be D7 to Z20.
So the first step is to find all cells in sheet1 in D7 to Z20 with
values=0, and then add up all such cells in sheet2...
How to do that? I am a green hand in using Excel/VBA...
Thanks a lot!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SOS! how do I write a customized function to do multiple-value lookup in Excel 2007?

see your other post

--
Biff
Microsoft Excel MVP


"LunaMoon" wrote in message
...

I have two regions in exact same places of sheet 1 and sheet 2,
I want to find all cells in the region in sheet 1, with cell
content equal to 0,
and then add the numbers at the corresponding locations in the region
in sheet 2 up.
For example, let's say in the region in sheet 1,
there are multiple locations where the cell content = 0:
A1,
B3,
C4,
D2,
etc...
I would like to obtain sum(sheet2!A1, sheet2!B3, sheet2!C4, sheet2!
D2), etc.
How do I do that?
I want to write a user customized function for that: The regions in
sheet1 and sheet2 are fixed to be D7 to Z20.
So the first step is to find all cells in sheet1 in D7 to Z20 with
values=0, and then add up all such cells in sheet2...
How to do that? I am a green hand in using Excel/VBA...
Thanks a lot!



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 Function INTO Customized Toolbar 23hitman Excel Discussion (Misc queries) 1 August 22nd 09 11:41 PM
How do I add a customized button with macro in Excel 2007 for acce Lmm Setting up and Configuration of Excel 2 September 18th 08 07:31 PM
Is there a write-multi-cell-at-once function in VBS for Excel? Tony Bansten Excel Discussion (Misc queries) 2 June 21st 08 12:14 AM
How do I create a customized toolbar button? Excell 2007 rllngriver Excel Discussion (Misc queries) 6 April 23rd 07 08:04 AM
Customized function (in cell) does not refresh value :o( MarcL Excel Discussion (Misc queries) 3 February 28th 06 08:57 PM


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