Formula help

Donai

Well-known Member
Joined
Mar 28, 2009
Messages
543
Hi, i need a formula that will look for blanks in Col A6:A, if blank found then return error else ok


Excel Workbook
AB
3JP MorganTest
4JP MorganTest
5JP MorganTest
6JP MorganTest
7JP MorganTest
8JP MorganTest
9JP MorganTest
10JP MorganTest
11JP MorganTest
12JP MorganTest
13JP MorganTest
14JP MorganTest
15JP MorganTest
16Test
17JP MorganTest
18JP MorganTest
19JP MorganTest
20JP MorganTest
21JP MorganTest
22JP MorganTest
23JP MorganTest
24Test
Sheet2
 
You would need to create a dynamic named range and use that in your formula, you can put a formula in the name manager to achieve this but it depends what you are looking for.

This link has some suggestions about finding the last used cell for a dynamic range where there may be blanks in teh data

http://www.excelforum.com/excel-general/671660-best-way-to-name-dynamic-ranges.html

If you are looking for text and not numbers you need to replace teh big number with a "last word" you can use "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" or Rept(z,200)

So your dynamic range formula (in teh name manager) would be something like

DynamicRange

Refers to

=OFFSET(Sheet1!$A$1,0,0,MATCH("zzzzzzzzzz",Sheet1!$A:$A,1))

And your error checking formula would be:

=IF(COUNTBLANK(DynamicRange)>0,"ERROR","OK")


I tend not to use dynamic ranges as they are a pain to debug but I think this is teh only way with your problem
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Curses - Aladin's solution avoids dynamic named ranges so is a lot nicer than mine. Not thinking this morning - sorry!:oops:
 
Upvote 0
Aladin this eliminates the dynamic range, would the same work for numericals? By using Lookup 9.99etc

It's in fact a dynamic range, but one without a name assigned to it.

For a numeric range, replace REPT("z",255) with 9.99999999999999E+307, as energman58 also notes.
 
Upvote 0
So whats the purpose of having a named range?

If you invoke many formulas in many places in a workook, which must reference a dynamic specification like this:

Sheet1!$A$6:INDEX(Sheet1!$A:$A,MATCH(9.99999999999999E+307,Sheet1!$A:$A))

it would be easier to assign to this bit a name (say Invoices) and use that name everywhere where that reference is needed.
 
Upvote 0
Use this:

=IF(B2="","error","ok")

If I got your query correct, it will resolve your problem.
 
Upvote 0
From your original example it appears that you're trying to compare column A to column B.

Excel 07 or newer only.

=COUNTIFS(A:A,"=",B:B,"<>")
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top