Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2015, 06:04 AM
TomG9876 TomG9876 is offline Enter Data in either of 2 columns? Windows 7 32bit Enter Data in either of 2 columns? Office 2000
Novice
Enter Data in either of 2 columns?
 
Join Date: Dec 2015
Posts: 2
TomG9876 is on a distinguished road
Default Enter Data in either of 2 columns?

I would like to enter data in either of two columns and have it appear in the other. Consider a vacation spreadsheet. If "Column A" were hours and "Column B" were Days I would like to enter "8" in "Column A" and have "1" appear in "Column B"; or I would like to enter "3" in "Column B" and have "24" appear in "Column A". How can I do this without getting a circular error?

Thanks Tom G
Reply With Quote
  #2  
Old 12-02-2015, 11:11 AM
shg shg is offline Enter Data in either of 2 columns? Windows 7 64bit Enter Data in either of 2 columns? Office 2010 32bit
Advanced Beginner
 
Join Date: Oct 2015
Posts: 55
shg is on a distinguished road
Default

Welcome to the board.

That would require VBA.

You could instead use columns A & B as input, and C & D to calculate:

Code:
   --A-- -B-- --C-- --D--
1   Hours Days Hours Days
2      16         16     2
3            3    24     3
4       1    1 Error Error
C2 and down: =CHOOSE(ISNUMBER(A2) + 2 * ISNUMBER(B2) + 1, "", A2, 8 * B2, "Error")

D2 and down: =CHOOSE(ISNUMBER(A2) + 2 * ISNUMBER(B2) + 1, "", A2 / 8, B2, "Error")
Reply With Quote
  #3  
Old 12-02-2015, 01:32 PM
TomG9876 TomG9876 is offline Enter Data in either of 2 columns? Windows 7 32bit Enter Data in either of 2 columns? Office 2000
Novice
Enter Data in either of 2 columns?
 
Join Date: Dec 2015
Posts: 2
TomG9876 is on a distinguished road
Default

Thanks! I have programmed a little in Access, but never Excel. I guess I should try.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
combining 2 or more columns of numerical data or text data heartdoc Excel 0 12-03-2014 10:57 PM
Enter Data in either of 2 columns? why am i able to enter data into baseline ketanco Project 3 08-22-2014 08:10 AM
A table that expands as you enter in data OMC Word 2 02-05-2013 03:27 PM
Enter Data in either of 2 columns? Cannot enter data in certain columns of tables HipHopapotamus Word Tables 1 05-02-2011 06:57 PM
Is there a way to do this? (automatically enter text based on form data) TIKKI555 Word 0 05-26-2010 09:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft