VBA to compare cells on two different tabs

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,347
Office Version
  1. 365
Platform
  1. Windows
I need to compare a template that was sent to the customer to the completed template that sent back. I cannot use the compare function that is an Ad-in because my users are not that savy.

is there a way, using VBA, to check to see if the return template has a "number" in cell D18. They should be entering in a dollar amount (Price). But sometime that add text like "No Bid" or NA..... I need to check that the cell is a number and if its not to flag the user that is comparing the response template before the data is pushed to a database.

I also need to check another cell to see if its a "whole number".

Thanks for the help.

Happy Holidays
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Book1
ABC
1Is number?
2FALSE
3TRUE1
4TRUE1.2
5TRUE26-Dec
6TRUE-5
7FALSENo Bid
8
9Is integer?
10FALSE
11TRUE1
12FALSE1.5
13FALSE12/26/2023 12:38
14TRUE12345678
15TRUE-5
16FALSENo Bid
17
Sheet3
Cell Formulas
RangeFormula
A2:A7A2=ISNUMBER(B2)
B13B13=NOW()
A10:A16A10=IF(ISNUMBER(B10), INT(B10)=B10)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A16Expression=A2=TRUEtextNO
A2:A16Expression=(A2=FALSE)*(LEN(A2)>0)textNO
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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