#1   Report Post  
Posted to microsoft.public.excel.misc
George
 
Posts: n/a
Default If statement - Loop?

I want to run an If statement or loop macro over two columns (say Col B and
C) that asks if data in cell B = "text" and cell C = "name" then return
"account number" to column D.
e.g
Cell B1 = ABC Bank
Cell C1 = Account Name
Cell D1 = Destination cell = Account number
This loop needs to be done on more than one Account Name.
Your help would be greatly appreciated.
George
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default If statement - Loop?

Could you please explain where you get the account number from?
What should be placed in column D?

Also: when you write "if data in cell B = "text" ", do you mean if cell B
contents contains text (no number) ?

HTH
--
AP

"George" a écrit dans le message de
...
I want to run an If statement or loop macro over two columns (say Col B

and
C) that asks if data in cell B = "text" and cell C = "name" then return
"account number" to column D.
e.g
Cell B1 = ABC Bank
Cell C1 = Account Name
Cell D1 = Destination cell = Account number
This loop needs to be done on more than one Account Name.
Your help would be greatly appreciated.
George



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
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
Loop gone crazy Dave Peterson Excel Discussion (Misc queries) 4 December 16th 05 03:38 PM
Do Loop Noemi Excel Discussion (Misc queries) 0 December 8th 05 10:43 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


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