Check for a range of blank cells from one sheet to another and return a message

Edgarvelez

Board Regular
Joined
Jun 6, 2019
Messages
197
Office Version
  1. 2016
Platform
  1. Windows
Hi all,
I have two sheets one named DashBoard and Sheet1
In Dashboard Starting I4 I will have a range of values (dynamic range).

If C3 in DashBoard equals "Sheet Line No." then look up the values in Dashboard starting at I7 on Sheet1 in Column A and check if Columns H I J K in the same row are blank,
I they are blank then return message box with the Line Number and the words Check OK
If any H I J K are not blank then return message box with the Line Number and the words Shipped.

Example:
I have entered starting in I4
4
5
6
7
8
21

My Message box should return as follows:

Sheet Line No. 4 OK
Sheet Line No. 5 Shipped
Sheet Line No. 6 Shipped
Sheet Line No. 7 Shipped
Sheet Line No. 8 Shipped
Sheet Line No. 21 Shipped

1652678994392.png


1652679051537.png
 

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.
See if something like this would work for you. Put this on Dashboard on Row 4.
Excel Formula:
=IF(COUNTBLANK(INDEX(Sheet1!$H$2:$K$1000,MATCH(I4,Sheet1!$A$2:$A$1000,0),0))=4,"OK","Shipped")

The easiest way to make it dynamic is to convert Sheet1 to an Excel Table and then use Table Structured referencing in the formula.
Otherwise just set the number of rows to more than you are ever going to need.
 
Upvote 0
Solution
Your suggestion worked and I have a code to add to each on the dashboard sheet.
What would be the code with sheet1 ending as shown below

1652702971214.png
 
Upvote 0
Sorry I don't understand what you are asking.
What is your Sheet1 XL2BB trying to tell me ?
 
Upvote 0
Apologies, I was asking for a code for if I entered the following in Dashboard
4
5
6
7
8
21
I could get the following results in sheet1

1652705232815.png
 
Upvote 0
I thought you wanted the Dashboard updated from Sheet 1. Are you now saying you want Sheet 1 updated ?
You are showing me an empty dashboard so I don't understand what you are putting into Sheet1.

If you do want the dashboard updated and the formula is not doing that show me what the dashboard should look like after updating it.
 
Upvote 0
Sorry for the confusion.
The formula provided for DashBoard
=IF(COUNTBLANK(INDEX(Sheet1!$H$2:$K$1000,MATCH(I4,Sheet1!$A$2:$A$1000,0),0))=4,"OK","Shipped")
Works great!!

I just needed a code to do something else as follows:
I entered values in DashBoard starting I4


1652706158914.png



This was the result I am looking for in sheet1
1652706318723.png
 
Upvote 0
If you are saying that you want to filter Sheet 1 based on those numbers, you will need VBA for that.
I am in Australia and login off for the night If you want to keep it moving then I think it is a sufficiently different question to the original (ie a request for VBA code to filter the other sheet) that you can start a new thread for it.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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